Skip to content

Commit

Permalink
Added support for 3.69
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Oct 3, 2018
1 parent 8ca7da1 commit 3759ee1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ static int sm_stuff_patched() {
if (module_nid == 0x8F2D0378) { // 3.60 retail
ksceKernelMemcpyKernelToUser(0x70602D58, &a, sizeof(uint32_t));
ksceKernelCpuDcacheWritebackRange((void *)0x70602D58, sizeof(uint32_t));
} else if (module_nid == 0x07937779 || module_nid == 0x71BF9CC5 || module_nid == 0x7C185186) { // 3.65/3.67/3.68 retail
} else if (module_nid == 0x07937779 ||
module_nid == 0x71BF9CC5 ||
module_nid == 0x7C185186 ||
module_nid == 0x52DFE3A7) { // 3.65-3.69 retail
ksceKernelMemcpyKernelToUser(0x70602D70, &a, sizeof(uint32_t));
ksceKernelCpuDcacheWritebackRange((void *)0x70602D70, sizeof(uint32_t));
}
Expand Down Expand Up @@ -174,6 +177,7 @@ int module_start(SceSize args, void *argp) {
case 0x07937779: // 3.65 retail
case 0x71BF9CC5: // 3.67 retail
case 0x7C185186: // 3.68 retail
case 0x52DFE3A7: // 3.69 retail
hooks[n_hooks++] = taiHookFunctionOffsetForKernel(KERNEL_PID, &sm_stuff_ref, tai_info.modid, 0, 0x2AE8, 1, sm_stuff_patched);
break;
}
Expand Down Expand Up @@ -233,6 +237,10 @@ int module_start(SceSize args, void *argp) {
case 0xC3C538DE: // 3.68 retail
_sceAppMgrGetIdByName = (void *)(text_addr + 0x3231D);
break;

case 0x321E4852: // 3.69 retail
_sceAppMgrGetIdByName = (void *)(text_addr + 0x32345);
break;
}

if (!_sceAppMgrGetIdByName)
Expand Down
4 changes: 2 additions & 2 deletions user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void GetFunctions() {
ScePspemuPausePops = (void *)(text_addr + 0x300C0 + 0x1);
ScePspemuInitPops = (void *)(text_addr + 0x30678 + 0x1);
ScePspemuInitPocs = (void *)(text_addr + 0x227C4 + 0x1);
} else if (module_nid == 0x3F75D4D3) { // 3.65/3.67/3.68 retail
} else if (module_nid == 0x3F75D4D3) { // 3.65-3.69 retail
ScePspemuSetDisplayConfig = (void *)(text_addr + 0x20E54 + 0x1);
ScePspemuPausePops = (void *)(text_addr + 0x300D4 + 0x1);
ScePspemuInitPops = (void *)(text_addr + 0x3068C + 0x1);
Expand Down Expand Up @@ -687,7 +687,7 @@ int module_start(SceSize args, void *argp) {
uids[n_uids++] = taiInjectData(tai_info.modid, 0, 0x2073C, &movs_a1_0_nop_opcode, sizeof(movs_a1_0_nop_opcode));
uids[n_uids++] = taiInjectData(tai_info.modid, 0, 0x2084E, &movs_a1_0_nop_opcode, sizeof(movs_a1_0_nop_opcode));
uids[n_uids++] = taiInjectData(tai_info.modid, 0, 0x301DC, &movs_a1_0_nop_opcode, sizeof(movs_a1_0_nop_opcode));
} else if (module_nid == 0x3F75D4D3) { // 3.65/3.67/3.68 retail
} else if (module_nid == 0x3F75D4D3) { // 3.65-3.69 retail
hooks[n_hooks++] = taiHookFunctionOffset(&ScePspemuInitTitleSpecificInfoRef, tai_info.modid, 0, 0x20378, 0x1, ScePspemuInitTitleSpecificInfoPatched);
hooks[n_hooks++] = taiHookFunctionOffset(&ScePspemuGetStartupPngRef, tai_info.modid, 0, 0x3C88, 0x1, ScePspemuGetStartupPngPatched);
hooks[n_hooks++] = taiHookFunctionOffset(&ScePspemuGetTitleidRef, tai_info.modid, 0, 0x20600, 0x1, ScePspemuGetTitleidPatched);
Expand Down

0 comments on commit 3759ee1

Please sign in to comment.