pm: quick safe_firm fixes

This commit is contained in:
TuxSH 2020-05-02 18:08:24 +01:00
parent d4dcf1a3e9
commit fdc1eaa16c
2 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ static Result launchTitleImpl(Handle *debug, ProcessData **outProcessData, const
TRY(registerProgram(&programHandle, programInfo, programInfoUpdate));
res = LOADER_GetProgramInfo(exheaderInfo, programHandle);
res = R_SUCCEEDED(res) && exheaderInfo->aci.local_caps.core_info.core_version != SYSCOREVER ? (Result)0xC8A05800 : res;
res = R_SUCCEEDED(res) && SYSCOREVER == 2 && exheaderInfo->aci.local_caps.core_info.core_version != SYSCOREVER ? (Result)0xC8A05800 : res;
if (R_FAILED(res)) {
LOADER_UnregisterProgram(programHandle);

View File

@ -15,5 +15,5 @@ bool isTitleLaunchPrevented(u64 titleId)
s64 numKips = 0;
svcGetSystemInfo(&numKips, 26, 0);
return numKips >= 6 && (titleId & ~N3DS_TID_BIT) == 0x0004003000008A02ULL; // ErrDisp
return numKips >= 6 && (titleId & ~(N3DS_TID_MASK | 1)) == 0x0004003000008A02ULL; // ErrDisp
}