Try fix 1/1/2015

This commit is contained in:
SilicaAndPina 2019-11-11 01:34:59 +13:00
parent 424d485cc6
commit 2014f298b3
2 changed files with 22 additions and 4 deletions

View File

@ -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);
}

View File

@ -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)