Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0xFF committed May 31, 2018
1 parent 3fa9da5 commit 35f194e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 35f194e

Please sign in to comment.