pm: quick safe_firm fixes
This commit is contained in:
parent
d4dcf1a3e9
commit
fdc1eaa16c
@ -208,7 +208,7 @@ static Result launchTitleImpl(Handle *debug, ProcessData **outProcessData, const
|
|||||||
TRY(registerProgram(&programHandle, programInfo, programInfoUpdate));
|
TRY(registerProgram(&programHandle, programInfo, programInfoUpdate));
|
||||||
|
|
||||||
res = LOADER_GetProgramInfo(exheaderInfo, programHandle);
|
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)) {
|
if (R_FAILED(res)) {
|
||||||
LOADER_UnregisterProgram(programHandle);
|
LOADER_UnregisterProgram(programHandle);
|
||||||
|
@ -15,5 +15,5 @@ bool isTitleLaunchPrevented(u64 titleId)
|
|||||||
s64 numKips = 0;
|
s64 numKips = 0;
|
||||||
|
|
||||||
svcGetSystemInfo(&numKips, 26, 0);
|
svcGetSystemInfo(&numKips, 26, 0);
|
||||||
return numKips >= 6 && (titleId & ~N3DS_TID_BIT) == 0x0004003000008A02ULL; // ErrDisp
|
return numKips >= 6 && (titleId & ~(N3DS_TID_MASK | 1)) == 0x0004003000008A02ULL; // ErrDisp
|
||||||
}
|
}
|
Reference in New Issue
Block a user