From 35f194ef47b0473547b40c67c9f6cfce7aa9d0e6 Mon Sep 17 00:00:00 2001 From: "Mahmood(Thunder07)" Date: Thu, 31 May 2018 12:43:01 +0100 Subject: [PATCH] Cleanup --- source/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index 3c1abc2..ad1253b 100644 --- a/source/main.c +++ b/source/main.c @@ -11,12 +11,11 @@ uint64_t __readmsr(unsigned long __register) void resetTime() { uint8_t* kernel_base = (uint8_t*)(__readmsr(0xC0000082) - 0x1C0); - // Note args type (uint64_t*) could be incorrect (aka uint64_t or uint32_t) but im too lazy to check since it works // Note somewhere between 1.76 and 5.05 `sceSblSrtcSetTime()` was changed and few extra checks have been added using samu // So if you're backporting this you may not need or even find `sceSblSrtcClearTimeDifference()` // Finally `sceSblSrtcClearTimeDifference()` is also named `sceSblSrtcReset()` when the 1st argument is 15 void(*sceSblSrtcClearTimeDifference)(uint64_t) = (void*)(kernel_base + 0x634690); - void(*sceSblSrtcSetTime)(uint64_t*) = (void*)(kernel_base + 0x634090); + void(*sceSblSrtcSetTime)(uint64_t) = (void*)(kernel_base + 0x634090); sceSblSrtcClearTimeDifference(15); sceSblSrtcSetTime(14861963); }