FS_MediaType
Media types.
Definition: fs.h:35
static Result romfsInit(void)
Wrapper for romfsMountSelf with the default "romfs" device name.
Definition: romfs.h:84
Result romfsMountFromTitle(u64 tid, FS_MediaType mediatype, const char *name)
Mounts RomFS from the specified title.
Result romfsMountFromCurrentProcess(const char *name)
Mounts RomFS using the current process host program RomFS.
Result romfsMountFromFile(Handle fd, u32 offset, const char *name)
Mounts RomFS from an open file.
Result romfsMountSelf(const char *name)
Mounts the Application's RomFS.
static Result romfsExit(void)
Wrapper for romfsUnmount with the default "romfs" device name.
Definition: romfs.h:90
Result romfsUnmount(const char *name)
Unmounts the RomFS device.
RomFS directory.
Definition: romfs.h:27
u32 nameLen
Name length.
Definition: romfs.h:33
u32 childDir
Offset of the first child directory.
Definition: romfs.h:30
u32 parent
Offset of the parent directory.
Definition: romfs.h:28
u32 sibling
Offset of the next sibling directory.
Definition: romfs.h:29
u32 childFile
Offset of the first file.
Definition: romfs.h:31
u32 nextHash
Directory hash table pointer.
Definition: romfs.h:32
RomFS file.
Definition: romfs.h:39
u32 sibling
Offset of the next sibling file.
Definition: romfs.h:41
u64 dataSize
Length of the file's data.
Definition: romfs.h:43
u32 nameLen
Name length.
Definition: romfs.h:45
u32 nextHash
File hash table pointer.
Definition: romfs.h:44
u64 dataOff
Offset of the file's data.
Definition: romfs.h:42
u32 parent
Offset of the parent directory.
Definition: romfs.h:40
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23