diff options
| author | bunnei <bunneidev@gmail.com> | 2019-01-10 17:04:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-10 17:04:38 -0500 |
| commit | 83e8ad23310937bb72f4412c15f45231a19202f7 (patch) | |
| tree | 80301af69b14a701f16e21d41ced436850085031 /src/core/file_sys/romfs.cpp | |
| parent | 912f2a520a77f478a33bbfb426b0aebf3148e5f7 (diff) | |
| parent | 2378ecd0e8709efc47fbc73ef41e5ee0b952ee59 (diff) | |
Merge pull request #1939 from DarkLordZach/web-applet
applets: Implement HLE web browser applet (LibAppletOff)
Diffstat (limited to 'src/core/file_sys/romfs.cpp')
| -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) |
