Try fix 1/1/2015
This commit is contained in:
parent
424d485cc6
commit
2014f298b3
|
@ -267,11 +267,14 @@ void main() {
|
|||
printf("Split2: %llx\n",split2);
|
||||
|
||||
printf("Updating SecureTick.. ");
|
||||
|
||||
ret = silRtcSetCurrentSecureTick(split2,split1);
|
||||
sceRegMgrSetKeyInt("/CONFIG/DATE", "set_automatically", 0);
|
||||
|
||||
printf("has ret 0x%x\n",ret);
|
||||
|
||||
printf("Updating NetworkTick.. ");
|
||||
ret = silRtcSetCurrentNetworkTick(split2,split1);
|
||||
printf("has ret 0x%x\n",ret);
|
||||
|
||||
sceRegMgrSetKeyInt("/CONFIG/DATE", "set_automatically", 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -53,7 +53,22 @@ int ksilSblPostSsMgrSetCpRtc(unsigned int timestamp)
|
|||
void _start() __attribute__ ((weak, alias ("module_start")));
|
||||
int module_start(SceSize argc, const void *args)
|
||||
{
|
||||
return SCE_KERNEL_START_SUCCESS;
|
||||
/*
|
||||
* 1/1/2015 check BTFO'd
|
||||
*/
|
||||
|
||||
tai_module_info_t info;
|
||||
info.size = sizeof(tai_module_info_t);
|
||||
if (taiGetModuleInfoForKernel(KERNEL_PID, "SceRtc", &info) < 0)
|
||||
{
|
||||
return SCE_KERNEL_START_SUCCESS;
|
||||
}
|
||||
|
||||
uint32_t patched_instruction = 0xBF00BF00; //NOP
|
||||
taiInjectDataForKernel(KERNEL_PID, info.modid, 0, 0x93C, &patched_instruction, 0x4); //bcs.w LAB_81000a64 -> NOP (SetCurrentSecureTick)
|
||||
taiInjectDataForKernel(KERNEL_PID, info.modid, 0, 0xA94, &patched_instruction, 0x4); //bcs.w LAB_81000bbc -> NOP (SetCurrentNetworkTick)
|
||||
|
||||
return SCE_KERNEL_START_SUCCESS;
|
||||
}
|
||||
|
||||
int module_stop(SceSize argc, const void *args)
|
||||
|
|
Loading…
Reference in New Issue