diff options
author | enler <enler2011@gmail.com> | 2020-04-07 02:03:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 02:03:32 +0200 |
commit | 27f122c48c2f12d53e13349b61e4c52fc9cb8b9b (patch) | |
tree | 14d348b751d0f2e43cf8c9a8a1bd63c6f3da3a50 /src/core | |
parent | Merge pull request #3513 from ReinUsesLisp/native-astc (diff) | |
download | yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar.gz yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar.bz2 yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar.lz yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar.xz yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.tar.zst yuzu-27f122c48c2f12d53e13349b61e4c52fc9cb8b9b.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/file_sys/romfs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp index c909d1ce4..120032134 100644 --- a/src/core/file_sys/romfs.cpp +++ b/src/core/file_sys/romfs.cpp @@ -5,6 +5,7 @@ #include <memory> #include "common/common_types.h" +#include "common/string_util.h" #include "common/swap.h" #include "core/file_sys/fsmitm_romfsbuild.h" #include "core/file_sys/romfs.h" @@ -126,7 +127,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) { return out->GetSubdirectories().front(); while (out->GetSubdirectories().size() == 1 && out->GetFiles().empty()) { - if (out->GetSubdirectories().front()->GetName() == "data" && + if (Common::ToLower(out->GetSubdirectories().front()->GetName()) == "data" && type == RomFSExtractionType::Truncated) break; out = out->GetSubdirectories().front(); |