diff options
| author | 2018-09-23 21:50:16 -0400 | |
|---|---|---|
| committer | 2018-09-23 21:50:20 -0400 | |
| commit | b3c2ec362bbbdd89da9c0aa84b425717f5e3d351 (patch) | |
| tree | d3f4e621532f1f280f94bac4e6d071707aabbd35 /src/core/file_sys/romfs.h | |
| parent | qt: Add UI elements for LayeredFS and related tools (diff) | |
| download | yuzu-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.h | 8 |
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 | }; |
| 33 | static_assert(sizeof(IVFCHeader) == 0xE0, "IVFCHeader has incorrect size."); | 33 | static_assert(sizeof(IVFCHeader) == 0xE0, "IVFCHeader has incorrect size."); |
| 34 | 34 | ||
| 35 | enum 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 |
| 37 | VirtualDir ExtractRomFS(VirtualFile file, bool traverse_into_data = true); | 42 | VirtualDir 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 |