mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #1764 from wwylele/how-can-i-find-this-if-i-have-only-decrypted-rom
fix loader: return proper result
This commit is contained in:
commit
14b4d971a4
|
@ -144,11 +144,12 @@ ResultStatus LoadFile(const std::string& filename) {
|
||||||
case FileType::CCI:
|
case FileType::CCI:
|
||||||
{
|
{
|
||||||
// Load application and RomFS
|
// Load application and RomFS
|
||||||
if (ResultStatus::Success == app_loader->Load()) {
|
ResultStatus result = app_loader->Load();
|
||||||
|
if (ResultStatus::Success == result) {
|
||||||
Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS);
|
Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS);
|
||||||
return ResultStatus::Success;
|
return ResultStatus::Success;
|
||||||
}
|
}
|
||||||
break;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Standard ELF file format...
|
// Standard ELF file format...
|
||||||
|
|
Loading…
Reference in a new issue