Editing Patches

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 684: Line 684:


  PATCHED:  005C3DC4 | 60 00 20 00 F8 1F 00 00 48 00 00 40 3C 00 00 0F
  PATCHED:  005C3DC4 | 60 00 20 00 F8 1F 00 00 48 00 00 40 3C 00 00 0F
Code from xai_plugin
void Fix_CBOMB()
{
#define DATE_2000_01_01 0x00E01D003A63A000ULL
#define DATE_1970_01_01 0x00DCBFFEFF2BC000ULL
#define DATE_2023_11_23 0x00E2CAD2ECB78000ULL
uint64_t clock, diff;
uint64_t sec, nsec;
uint64_t a1, a2;
uint64_t currentTick;
uint64_t timedata = 0x00E2CABECEE02000ULL - DATE_2000_01_01;
uint64_t patchedDate = DATE_2023_11_23;
_cellRtcGetCurrentTick(&currentTick);
{ system_call_4(0x362, 0x3002, 0, (uint64_t)&a1, (uint64_t)&a2); }
if(currentTick < DATE_2023_11_23)
{
_cellRtcSetCurrentTick(&patchedDate);
sysGetCurrentTime(&sec, &nsec);
sys_time_get_rtc(&clock);
diff = sec - clock;
xSettingDateGetInterface()->SaveDiffTime(diff);
}
if(!a1)
sys_ss_secure_rtc(timedata);
{ system_call_4(0x362, 0x3002, 0, (uint64_t)&a1, (uint64_t)&a2); }
_cellRtcGetCurrentTick(&currentTick);
uint64_t result_time2 = (currentTick - DATE_2000_01_01);
uint64_t rtc_clock = a1 * 1000000 + DATE_2000_01_01;
if(rtc_clock < currentTick)
{
sys_ss_secure_rtc(result_time2);
showMessage("msg_rtc_fixed", (char *)XAI_PLUGIN, (char *)TEX_SUCCESS);
}
else if(rtc_clock > currentTick)
{
sysSetCurrentTime(((rtc_clock - DATE_1970_01_01) / 1000000), 0);
sysGetCurrentTime(&sec, &nsec);
sys_time_get_rtc(&clock);
diff = sec - clock;
xSettingDateGetInterface()->SaveDiffTime(diff);
showMessage("msg_rtc_date_fixed", (char *)XAI_PLUGIN, (char *)TEX_SUCCESS);
}
buzzer(SINGLE_BEEP);
}<br />




Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)