diff options
author | enler <enler2011@gmail.com> | 2020-04-07 08:03:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 02:03:32 +0200 |
commit | 27f122c48c2f12d53e13349b61e4c52fc9cb8b9b (patch) | |
tree | 14d348b751d0f2e43cf8c9a8a1bd63c6f3da3a50 /src | |
parent | 588a20be3fca40746c965ea7831177f5c894ebee (diff) |
file_sys: fix LayeredFS error when loading some games made with… (#3602)
* fix LayeredFS error when loading some games made with the Unity
Diffstat (limited to 'src')
-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 c909d1ce40..1200321349 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(); |