summaryrefslogtreecommitdiff
path: root/src/core/file_sys/romfs.h
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-09-23 21:50:16 -0400
committerGravatar Zach Hilman2018-09-23 21:50:20 -0400
commitb3c2ec362bbbdd89da9c0aa84b425717f5e3d351 (patch)
treed3f4e621532f1f280f94bac4e6d071707aabbd35 /src/core/file_sys/romfs.h
parentqt: Add UI elements for LayeredFS and related tools (diff)
downloadyuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.tar.gz
yuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.tar.xz
yuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.zip
fsmitm: Cleanup and modernize fsmitm port
Diffstat (limited to 'src/core/file_sys/romfs.h')
-rw-r--r--src/core/file_sys/romfs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs.h b/src/core/file_sys/romfs.h
index 8e82585a0..ecd1eb725 100644
--- a/src/core/file_sys/romfs.h
+++ b/src/core/file_sys/romfs.h
@@ -32,9 +32,15 @@ struct IVFCHeader {
32}; 32};
33static_assert(sizeof(IVFCHeader) == 0xE0, "IVFCHeader has incorrect size."); 33static_assert(sizeof(IVFCHeader) == 0xE0, "IVFCHeader has incorrect size.");
34 34
35enum class RomFSExtractionType {
36 Full, // Includes data directory
37 Truncated, // Traverses into data directory
38};
39
35// Converts a RomFS binary blob to VFS Filesystem 40// Converts a RomFS binary blob to VFS Filesystem
36// Returns nullptr on failure 41// Returns nullptr on failure
37VirtualDir ExtractRomFS(VirtualFile file, bool traverse_into_data = true); 42VirtualDir ExtractRomFS(VirtualFile file,
43 RomFSExtractionType type = RomFSExtractionType::Truncated);
38 44
39// Converts a VFS filesystem into a RomFS binary 45// Converts a VFS filesystem into a RomFS binary
40// Returns nullptr on failure 46// Returns nullptr on failure