diff options
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) { | |||
| 119 | 119 | ||
| 120 | VirtualDir out = std::move(root); | 120 | VirtualDir out = std::move(root); |
| 121 | 121 | ||
| 122 | if (type == RomFSExtractionType::SingleDiscard) | ||
| 123 | return out->GetSubdirectories().front(); | ||
| 124 | |||
| 122 | while (out->GetSubdirectories().size() == 1 && out->GetFiles().empty()) { | 125 | while (out->GetSubdirectories().size() == 1 && out->GetFiles().empty()) { |
| 123 | if (out->GetSubdirectories().front()->GetName() == "data" && | 126 | if (out->GetSubdirectories().front()->GetName() == "data" && |
| 124 | type == RomFSExtractionType::Truncated) | 127 | type == RomFSExtractionType::Truncated) |