Format:RomFS (3DS IVFC)
| Magic | 49 56 46 43 ("IVFC") at offset 0 |
|---|---|
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
3DS asset filesystem: an IVFC hash-tree wrapper (magic IVFC, 0x10000) around level 3 data, which holds the directory/file metadata tables with hash buckets and the file data.
IVFC wrapper
See Fact:RomFS (3DS IVFC)/struct/IVFC header: magic IVFC, id 0x10000, master hash size, then three levels each with a logical offset, size and block size (log2), then an optional-info size. Level 3 contains the actual filesystem; levels 1 and 2 are SHA-256 hash trees (from 3dstool's romfs.h).
Level 3 (metadata and data)
Header of four sections (directory hash table, directory metadata table, file hash table, file metadata table) as (offset, size) pairs plus the file data offset. Directory entries hold parent, sibling, child, first file and next-in-bucket offsets plus a UTF-16 name length; file entries hold parent, sibling, data offset, data size, next-in-bucket offset and name length. Names are UTF-16LE and follow each entry padded to 4 bytes. The hash bucket uses the parent offset and the name (3dstool hash(n32 parentOffset, name)).
Related
Format:NCCH container; homebrew can mount it with libctru romfsInit.
Code & repositories
- https://github.com/dnasdw/3dstool @
3771ae967d64092370b646db86aa626401c279e8· license: MIT
3dstool: src/ncsd.h, ncch.h, extendedheader.h, exefs.h, romfs.h and compression codecs.
Tested on: source read, not run: source read · checked 2026-10-18; last activity 2026-01-24; Note: the latest release ships binaries; the wiki links only the source, never the binaries