mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
Fix behavior so we can turn off "IgnoreBadMemAccess" in headless
This commit is contained in:
1 parent
cc57945280
commit
c99a303646
5 files changed
+31
-15
No files matched your search
@@ -409,8 +409,14 @@ u32 sceKernelSetVTimerHandler(SceUID uid, u32 scheduleAddr, u32 handlerFuncAddr,
|
||||
}
|
||||
|
||||
hleEatCycles(2000);
|
||||
u64 schedule;
|
||||
if (!Memory::IsValidAddress(scheduleAddr)) {
|
||||
ERROR_LOG(Log::sceKernel, "sceKernelSetVTimerHandler: invalid schedule address %08x", scheduleAddr);
|
||||
schedule = 0;
|
||||
} else {
|
||||
schedule = Memory::ReadUnchecked_U64(scheduleAddr);
|
||||
}
|
||||
|
||||
u64 schedule = Memory::Read_U64(scheduleAddr);
|
||||
vt->nvt.handlerAddr = handlerFuncAddr;
|
||||
if (handlerFuncAddr) {
|
||||
vt->nvt.commonAddr = commonAddr;
|
||||
|
||||
Reference in new issue
Block a user