More Read_U32 and Read_U64

This commit is contained in:
Henrik Rydgård committed 2026-08-11 09:08:52 +02:00
1 parent 4f8859d0ec
commit af9891cd7d
8 files changed
+90 -86

No files matched your search

+6 -3
View File
@@ -319,10 +319,13 @@ u32 sceKernelSetVTimerTime(SceUID uid, u32 timeClockAddr) {
if (!vt) {
return hleLogError(Log::sceKernel, error, "bad timer ID");
}
u64 time = Memory::Read_U64(timeClockAddr);
if (Memory::IsValidAddress(timeClockAddr))
if (Memory::IsValidAddress(timeClockAddr)) {
u64 time = Memory::Read_U64(timeClockAddr);
Memory::Write_U64(__KernelSetVTimer(vt, time), timeClockAddr);
} else {
_dbg_assert_(false);
}
return hleLogDebug(Log::sceKernel, 0);
}