Skip to content

Commit

Permalink
add devkit offsets (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princess of Sleeping authored and nowrep committed Feb 27, 2018
1 parent b5b9e0b commit 3d8ad98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ static void get_functions_testkit()
scePafWidgetSetFontSize = (void*) text_addr + 0x453038;
}

static void get_functions_devkit()
{
scePafWidgetSetFontSize = (void*) text_addr + 0x44E5F8;
}

static int digit_len(int num)
{
if (num < 10) {
Expand Down Expand Up @@ -166,6 +171,12 @@ int module_start(SceSize argc, const void *args)
get_functions_testkit();
break;

case 0x6CB01295: // PDEL 3.60 SceShell
offsets[0] = 0x17B8DC;
offsets[1] = 0x400028;
get_functions_devkit();
break;

default:
LOG("SceShell %X NID not recognized", info.module_nid);
return SCE_KERNEL_START_FAILED;
Expand Down

0 comments on commit 3d8ad98

Please sign in to comment.