Skip to content

Commit

Permalink
Merge pull request #23 from TheOfficialFloW/master
Browse files Browse the repository at this point in the history
Added 3.65/3.67 support
  • Loading branch information
xyzz committed Mar 11, 2018
2 parents 66fc132 + 42d61a5 commit d5601af
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion driver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,19 @@ int redirect_ux0() {
return -1;

// Get important function
module_get_offset(KERNEL_PID, info.modid, 0, 0x138C1, (uintptr_t *)&sceIoFindMountPoint);
switch (info.module_nid) {
case 0x9642948C: // 3.60 retail
module_get_offset(KERNEL_PID, info.modid, 0, 0x138C1, (uintptr_t *)&sceIoFindMountPoint);
break;

case 0xA96ACE9D: // 3.65 retail
case 0x3347A95F: // 3.67 retail
module_get_offset(KERNEL_PID, info.modid, 0, 0x182F5, (uintptr_t *)&sceIoFindMountPoint);
break;

default:
return -1;
}

shellKernelRedirectUx0();
io_remount(MOUNT_POINT_ID);
Expand Down

0 comments on commit d5601af

Please sign in to comment.