diff options
author | Lioncash <mathew1800@gmail.com> | 2019-11-27 11:26:31 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-11-27 11:26:35 +0100 |
commit | ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce (patch) | |
tree | 0d3bfd6bae532e105bb6b27379060835d1a7716f | |
parent | Merge pull request #3164 from ReinUsesLisp/half-cast-float (diff) | |
download | yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar.gz yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar.bz2 yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar.lz yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar.xz yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.tar.zst yuzu-ba3c55ab7b40dd9c227cef8f3c3fdd2650f9fdce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/romfs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp index ebbdf081e..5f24bc5ae 100644 --- a/src/core/file_sys/romfs.cpp +++ b/src/core/file_sys/romfs.cpp @@ -12,7 +12,7 @@ #include "core/file_sys/vfs_vector.h" namespace FileSys { - +namespace { constexpr u32 ROMFS_ENTRY_EMPTY = 0xFFFFFFFF; struct TableLocation { @@ -51,7 +51,7 @@ struct FileEntry { static_assert(sizeof(FileEntry) == 0x20, "FileEntry has incorrect size."); template <typename Entry> -static std::pair<Entry, std::string> GetEntry(const VirtualFile& file, std::size_t offset) { +std::pair<Entry, std::string> GetEntry(const VirtualFile& file, std::size_t offset) { Entry entry{}; if (file->ReadObject(&entry, offset) != sizeof(Entry)) return {}; @@ -99,6 +99,7 @@ void ProcessDirectory(VirtualFile file, std::size_t dir_offset, std::size_t file this_dir_offset = entry.first.sibling; } } +} // Anonymous namespace VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) { RomFSHeader header{}; |