diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 22:18:28 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 21:30:36 +0100 |
commit | abbcc8e61e33ba093df9c823a03c70eccf010e4c (patch) | |
tree | 13a0b705139336b59f491e216febc9d1859da0d7 /src/core/file_sys/romfs.cpp | |
parent | am: Add size parameter to am:IStorage logging (diff) | |
download | yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar.gz yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar.bz2 yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar.lz yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar.xz yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.tar.zst yuzu-abbcc8e61e33ba093df9c823a03c70eccf010e4c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/romfs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp index 81e1f66ac..ebbdf081e 100644 --- a/src/core/file_sys/romfs.cpp +++ b/src/core/file_sys/romfs.cpp @@ -119,6 +119,9 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) { VirtualDir out = std::move(root); + if (type == RomFSExtractionType::SingleDiscard) + return out->GetSubdirectories().front(); + while (out->GetSubdirectories().size() == 1 && out->GetFiles().empty()) { if (out->GetSubdirectories().front()->GetName() == "data" && type == RomFSExtractionType::Truncated) |