Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:libctru

From ReverseEngineering.wiki
Library
On this wiki Facts · Code · Notes · Topics

devkitPro's userland library for Nintendo 3DS homebrew: system calls (svc), IPC command wrappers for system services, gfx/GPU access, RomFS mounting. Its headers are an extensive public reference for 3DS service interfaces and the NCCH extended header.

Overview

libctru (zlib license) headers under libctru/include/3ds: svc.h (kernel calls), ipc.h (command header encoding), services/*.h (one per system service: fs, am, apt, hid, cfgu, ...), exheader.h (NCCH extended header structs such as ExHeader_Info), romfs.h (RomFS mounting; also mounts the RomFS section embedded in a 3DSX).

See Platform:Nintendo 3DS.

Code & repositories

  • https://github.com/devkitPro/libctru @ 9b55eda44cf80b971503991e0c78f9bc8fe50425 · license: Zlib (declared by the contributor; GitHub's detector did not recognize a license file)
    libctru: libctru/include/3ds/exheader.h (NCCH extended header), romfs.h, services/*.h.
    Tested on: source read, not run: source read · checked 2026-10-18; last activity 2026-09-29