mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-09 16:32:44 +01:00
file_sys: fix LayeredFS error when loading some games made with… (#3602)
* fix LayeredFS error when loading some games made with the Unity
This commit is contained in:
parent
588a20be3f
commit
27f122c48c
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
#include "common/string_util.h"
|
||||||
#include "common/swap.h"
|
#include "common/swap.h"
|
||||||
#include "core/file_sys/fsmitm_romfsbuild.h"
|
#include "core/file_sys/fsmitm_romfsbuild.h"
|
||||||
#include "core/file_sys/romfs.h"
|
#include "core/file_sys/romfs.h"
|
||||||
|
@ -126,7 +127,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) {
|
||||||
return out->GetSubdirectories().front();
|
return out->GetSubdirectories().front();
|
||||||
|
|
||||||
while (out->GetSubdirectories().size() == 1 && out->GetFiles().empty()) {
|
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)
|
type == RomFSExtractionType::Truncated)
|
||||||
break;
|
break;
|
||||||
out = out->GetSubdirectories().front();
|
out = out->GetSubdirectories().front();
|
||||||
|
|
Loading…
Reference in a new issue