Merge pull request #6376 from sepalani/es-fix

ES: Make it not fail on something that isn't IOS
This commit is contained in:
Léo Lam 2018-02-13 16:42:17 +01:00 committed by GitHub
commit dbdf964f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,8 +389,10 @@ bool IsEmulated(u64 title_id)
{ {
const bool ios = const bool ios =
IsTitleType(title_id, IOS::ES::TitleType::System) && title_id != Titles::SYSTEM_MENU; IsTitleType(title_id, IOS::ES::TitleType::System) && title_id != Titles::SYSTEM_MENU;
if (!ios)
return true;
const u32 version = static_cast<u32>(title_id); const u32 version = static_cast<u32>(title_id);
return ios && IsEmulated(version); return IsEmulated(version);
} }
} }
} }