Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
OperationNT414C committed Jul 21, 2018
1 parent 7e637b9 commit e0d936d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions main.c
Expand Up @@ -200,11 +200,20 @@ static void get_functions_testkit_360()
scePafWidgetSetFontSize = (void*) text_addr + 0x453038;
}

static void get_functions_testkit_365()
{
scePafWidgetSetFontSize = (void*) text_addr + 0x453478;
}

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

static void get_functions_devkit_365()
{
scePafWidgetSetFontSize = (void*) text_addr + 0x44EA68;
}

static int digit_len(int num)
{
Expand Down Expand Up @@ -498,12 +507,24 @@ switch (info.module_nid) {
get_functions_testkit_360();
break;

case 0x587F9CED: // PTEL 3.65 SceShell
offsets[0] = 0x17C3A0;
offsets[1] = 0x404C68;
get_functions_testkit_365();
break;

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

case 0xE6A02F2B: // PDEL 3.65 SceShell
offsets[0] = 0x17B9A4;
offsets[1] = 0x400498;
get_functions_devkit_365();
break;

default:
return SCE_KERNEL_START_FAILED;
}
Expand Down

0 comments on commit e0d936d

Please sign in to comment.