Skip to content

Commit a248ea2

Browse files
Update main.c
1 parent 7ab5a4d commit a248ea2

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

main.c

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ uint32_t text_addr, text_size, data_addr, data_size;
174174
static int (*scePafWidgetSetFontSize)(void *widget, float size, int unk0, int pos, int len);
175175

176176

177-
static void get_functions_retail()
177+
static void get_functions_retail_360()
178178
{
179179
scePafWidgetSetFontSize = (void*) text_addr + 0x45ce80;
180180
}
@@ -184,12 +184,17 @@ static void get_functions_retail_365()
184184
scePafWidgetSetFontSize = (void*) text_addr + 0x45d2c8;
185185
}
186186

187-
static void get_functions_testkit()
187+
static void get_functions_retail_368()
188+
{
189+
scePafWidgetSetFontSize = (void*) text_addr + 0x45D2C8;
190+
}
191+
192+
static void get_functions_testkit_360()
188193
{
189194
scePafWidgetSetFontSize = (void*) text_addr + 0x453038;
190195
}
191196

192-
static void get_functions_devkit()
197+
static void get_functions_devkit_360()
193198
{
194199
scePafWidgetSetFontSize = (void*) text_addr + 0x44E5F8;
195200
}
@@ -456,11 +461,11 @@ int module_start(SceSize argc, const void *args)
456461

457462
uint32_t offsets[2];
458463

459-
switch (info.module_nid) {
464+
switch (info.module_nid) {
460465
case 0x0552F692: // retail 3.60 SceShell
461466
offsets[0] = 0x183ea4;
462467
offsets[1] = 0x40e0b4;
463-
get_functions_retail();
468+
get_functions_retail_360();
464469
break;
465470

466471
case 0x5549BF1F: // retail 3.65 SceShell
@@ -469,16 +474,22 @@ int module_start(SceSize argc, const void *args)
469474
get_functions_retail_365();
470475
break;
471476

472-
case 0xEAB89D5C: // testkit 3.60 SceShell
473-
offsets[0] = 0x17c2d8;
477+
case 0x12DAC0F3: // retail 3.68 SceShell
478+
offsets[0] = 0x183F6C;
479+
offsets[1] = 0x40E4FC;
480+
get_functions_retail_368();
481+
break;
482+
483+
case 0xEAB89D5C: // PTEL 3.60 SceShell
484+
offsets[0] = 0x17C2D8;
474485
offsets[1] = 0x404828;
475-
get_functions_testkit();
486+
get_functions_testkit_360();
476487
break;
477488

478489
case 0x6CB01295: // PDEL 3.60 SceShell
479490
offsets[0] = 0x17B8DC;
480491
offsets[1] = 0x400028;
481-
get_functions_devkit();
492+
get_functions_devkit_360();
482493
break;
483494

484495
default:

0 commit comments

Comments
 (0)