11 #include "../../types.h"
12 #include "../../services/fs.h"
13 #include "../../services/ncm_types.h"
NcmStorageId
StorageId.
Definition: ncm_types.h:12
Result romfsMountFromFsdev(const char *path, u64 offset, const char *name)
Mounts RomFS from a file path in a mounted fsdev device.
static Result romfsInit(void)
Wrapper for romfsMountSelf with the default "romfs" device name.
Definition: romfs_dev.h:113
Result romfsMountFromStorage(FsStorage storage, u64 offset, const char *name)
Mounts RomFS from an open storage.
Result romfsMountFromFile(FsFile file, u64 offset, const char *name)
Mounts RomFS from an open file.
Result romfsMountFromCurrentProcess(const char *name)
Mounts RomFS using the current process host program RomFS.
Result romfsMountFromDataArchive(u64 dataId, NcmStorageId storageId, const char *name)
Mounts RomFS from SystemData.
Result romfsMountDataStorageFromProgram(u64 program_id, const char *name)
Mounts RomFS of a running program.
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_dev.h:119
Result romfsUnmount(const char *name)
Unmounts the RomFS device.
RomFS directory.
Definition: romfs_dev.h:32
u32 nameLen
Name length.
Definition: romfs_dev.h:38
u32 childDir
Offset of the first child directory.
Definition: romfs_dev.h:35
u32 parent
Offset of the parent directory.
Definition: romfs_dev.h:33
u32 sibling
Offset of the next sibling directory.
Definition: romfs_dev.h:34
u32 childFile
Offset of the first file.
Definition: romfs_dev.h:36
u32 nextHash
Directory hash table pointer.
Definition: romfs_dev.h:37
RomFS file.
Definition: romfs_dev.h:44
u32 sibling
Offset of the next sibling file.
Definition: romfs_dev.h:46
u64 dataSize
Length of the file's data.
Definition: romfs_dev.h:48
u32 nameLen
Name length.
Definition: romfs_dev.h:50
u32 nextHash
File hash table pointer.
Definition: romfs_dev.h:49
u64 dataOff
Offset of the file's data.
Definition: romfs_dev.h:47
u32 parent
Offset of the parent directory.
Definition: romfs_dev.h:45
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21