diff options
Diffstat (limited to 'src/core/file_sys/romfs.h')
| -rw-r--r-- | src/core/file_sys/romfs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs.h b/src/core/file_sys/romfs.h index e54a7d7a9..8e82585a0 100644 --- a/src/core/file_sys/romfs.h +++ b/src/core/file_sys/romfs.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <map> | ||
| 8 | #include "common/common_funcs.h" | 9 | #include "common/common_funcs.h" |
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "common/swap.h" | 11 | #include "common/swap.h" |
| @@ -12,6 +13,8 @@ | |||
| 12 | 13 | ||
| 13 | namespace FileSys { | 14 | namespace FileSys { |
| 14 | 15 | ||
| 16 | struct RomFSHeader; | ||
| 17 | |||
| 15 | struct IVFCLevel { | 18 | struct IVFCLevel { |
| 16 | u64_le offset; | 19 | u64_le offset; |
| 17 | u64_le size; | 20 | u64_le size; |
| @@ -31,6 +34,10 @@ static_assert(sizeof(IVFCHeader) == 0xE0, "IVFCHeader has incorrect size."); | |||
| 31 | 34 | ||
| 32 | // Converts a RomFS binary blob to VFS Filesystem | 35 | // Converts a RomFS binary blob to VFS Filesystem |
| 33 | // Returns nullptr on failure | 36 | // Returns nullptr on failure |
| 34 | VirtualDir ExtractRomFS(VirtualFile file); | 37 | VirtualDir ExtractRomFS(VirtualFile file, bool traverse_into_data = true); |
| 38 | |||
| 39 | // Converts a VFS filesystem into a RomFS binary | ||
| 40 | // Returns nullptr on failure | ||
| 41 | VirtualFile CreateRomFS(VirtualDir dir); | ||
| 35 | 42 | ||
| 36 | } // namespace FileSys | 43 | } // namespace FileSys |