Skip to content

Commit

Permalink
IRISMAN 4.91
Browse files Browse the repository at this point in the history
- Added support for 4.91 (untested)
  • Loading branch information
aldostools committed Feb 27, 2024
1 parent efbc0e2 commit ea56cd4
Show file tree
Hide file tree
Showing 13 changed files with 202 additions and 46 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ include $(PSL1GHT)/ppu_rules

# aditional scetool flags (--self-ctrl-flags, --self-cap-flags...)
SCETOOL_FLAGS += --self-ctrl-flags 4000000000000000000000000000000000000000000000000000000000000002
SCETOOL_FLAGS += --self-cap-flags 00000000000000000000000000000000000000000000007B0000000100000000
SCETOOL_FLAGS += --self-cap-flags 00000000000000000000000000000000000000000000007B0000000100002000

#---------------------------------------------------------------------------------
# TARGET is the name of the output
Expand Down
4 changes: 3 additions & 1 deletion include/payload475/payload_475.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ extern int is_firm_485(void);
extern int is_firm_486(void);
extern int is_firm_487(void);
extern int is_firm_488(void);
extern int is_firm_48X(void);
extern int is_firm_489(void);
extern int is_firm_490(void);
extern int is_firm_491(void);
extern void set_bdvdemu_475(int current_payload);
extern void load_payload_475(int mode);
extern int is_payload_loaded_475(void);
Expand Down
4 changes: 3 additions & 1 deletion include/payload475deh/payload_475deh.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ extern int is_firm_485deh(void);
extern int is_firm_486deh(void);
extern int is_firm_487deh(void);
extern int is_firm_488deh(void);
extern int is_firm_48Xdeh(void);
extern int is_firm_489deh(void);
extern int is_firm_490deh(void);
extern int is_firm_49Xdeh(void);
extern void set_bdvdemu_475deh(int current_payload);
extern void load_payload_475deh(int mode);
extern int is_payload_loaded_475deh(void);
Expand Down
4 changes: 3 additions & 1 deletion include/payload481dex/payload_481dex.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ extern int is_firm_485dex(void);
extern int is_firm_486dex(void);
extern int is_firm_487dex(void);
extern int is_firm_488dex(void);
extern int is_firm_48Xdex(void);
extern int is_firm_489dex(void);
extern int is_firm_490dex(void);
extern int is_firm_49Xdex(void);
extern void set_bdvdemu_481dex(int current_payload);
extern void load_payload_481dex(int mode);
extern int is_payload_loaded_481dex(void);
Expand Down
24 changes: 12 additions & 12 deletions source/controlfan.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ int get_controlfan_offsets()
// enables sys_set_leds
sys386_offset = 0x800000000000A47CULL;

} else if((firmware == 0x475C) || (firmware == 0x476C) || (firmware == 0x478C) || (firmware == 0x481C) || (firmware == 0x482C) || (firmware == 0x483C) || (firmware == 0x484C) || (firmware == 0x485C) || (firmware == 0x486C) || (firmware == 0x487C) || (firmware == 0x488C) || (firmware == 0x489C)) { // firmware 4.75-4.89 cex
} else if((firmware == 0x475C) || (firmware == 0x476C) || (firmware == 0x478C) || (firmware == 0x481C) || (firmware == 0x482C) || (firmware == 0x483C) || (firmware == 0x484C) || (firmware == 0x485C) || (firmware == 0x486C) || (firmware == 0x487C) || (firmware == 0x488C) || (firmware == 0x489C) || (firmware == 0x491C)) { // firmware 4.75-4.91 cex

// enables sys_game_get_temperature
sys383_offset = 0x800000000000C6A8ULL;
Expand All @@ -444,28 +444,28 @@ int get_controlfan_offsets()
// enables sys_set_leds
sys386_offset = 0x800000000000A3FCULL;

} else if((firmware == 0x475D) || (firmware == 0x476D) || (firmware == 0x478D) || (firmware == 0x481D) || (firmware == 0x482D) || (firmware == 0x483D) || (firmware == 0x484D) || (firmware == 0x485D) || (firmware == 0x486D) || (firmware == 0x487D) || (firmware == 0x488D) || (firmware == 0x489D)
|| (firmware == 0x475E) || (firmware == 0x476E) || (firmware == 0x478E) || (firmware == 0x481E) || (firmware == 0x482E) || (firmware == 0x483E) || (firmware == 0x484E) || (firmware == 0x485E) || (firmware == 0x486E) || (firmware == 0x487E) || (firmware == 0x488E) || (firmware == 0x489E)) { // firmware 4.75-4.89 dex / deh
} else if((firmware == 0x480C) || (firmware == 0x490C)) { // firmware 4.80 cex / 4.90 cex

// enables sys_game_get_temperature
sys383_offset = 0x800000000000C728ULL;
sys383_offset = 0x800000000000C6A4ULL;
// enables sys_sm_get_fan_policy
sys409_offset = 0x8000000000009EB8ULL;
sys409_offset = 0x8000000000009E38ULL;
// enables sys_sm_set_fan_policy
sys389_offset = 0x800000000000A3B4ULL;
sys389_offset = 0x800000000000A334ULL;
// enables sys_set_leds
sys386_offset = 0x800000000000A47CULL;
sys386_offset = 0x800000000000A3FCULL;

} else if(firmware == 0x480C) { // firmware 4.80 cex
} else if((firmware == 0x475D) || (firmware == 0x476D) || (firmware == 0x478D) || (firmware == 0x481D) || (firmware == 0x482D) || (firmware == 0x483D) || (firmware == 0x484D) || (firmware == 0x485D) || (firmware == 0x486D) || (firmware == 0x487D) || (firmware == 0x488D) || (firmware == 0x489D) || (firmware == 0x490D) || (firmware == 0x491D)
|| (firmware == 0x475E) || (firmware == 0x476E) || (firmware == 0x478E) || (firmware == 0x481E) || (firmware == 0x482E) || (firmware == 0x483E) || (firmware == 0x484E) || (firmware == 0x485E) || (firmware == 0x486E) || (firmware == 0x487E) || (firmware == 0x488E) || (firmware == 0x489E) || (firmware == 0x490E) || (firmware == 0x491E)) { // firmware 4.75-4.91 dex / deh

// enables sys_game_get_temperature
sys383_offset = 0x800000000000C6A4ULL;
sys383_offset = 0x800000000000C728ULL;
// enables sys_sm_get_fan_policy
sys409_offset = 0x8000000000009E38ULL;
sys409_offset = 0x8000000000009EB8ULL;
// enables sys_sm_set_fan_policy
sys389_offset = 0x800000000000A334ULL;
sys389_offset = 0x800000000000A3B4ULL;
// enables sys_set_leds
sys386_offset = 0x800000000000A3FCULL;
sys386_offset = 0x800000000000A47CULL;

} else if((firmware == 0x480D) || (firmware == 0x480E)) { // firmware 4.80 dex / deh

Expand Down
8 changes: 4 additions & 4 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2133,8 +2133,8 @@ void read_settings()
char InstallMamba[2] = "1";
char LoadMambaAndQuit[2] = "0";

spoof_version = 0x0489;
spoof_revision = 0x00010aad; //4.88 = 0x000109f5; // 4.87 = 0x000109a5; //4.86 = 0x00010938 // 4.85 = 0x0001091d
spoof_version = 0x0490;
spoof_revision = 0x00010b14; //4.89 = 0x00010aad, 4.88 = 0x000109f5; // 4.87 = 0x000109a5; //4.86 = 0x00010938 // 4.85 = 0x0001091d

// set default values
sprintf(covers_path, "%s/USRDIR/covers/", MM_PATH);
Expand Down Expand Up @@ -2626,7 +2626,7 @@ s32 main(s32 argc, const char* argv[])
{
bAllowNetGames = is_ps3hen || (sys8_mamba() == 0x666) || (get_vsh_plugin_slot_by_name("WWWD") > 0);

if(!bAllowNetGames)
//if(!bAllowNetGames)
{
int slot = get_vsh_plugin_free_slot();

Expand Down Expand Up @@ -9508,7 +9508,7 @@ void draw_gbloptions(float x, float y)

if((old_pad & (BUTTON_SELECT | BUTTON_L2)) && file_exists("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self"))
{
sysProcessExitSpawn2("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self", NULL, NULL, NULL, 0, 3071, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
sysProcessExitSpawn2("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self", NULL, NULL, NULL, 0, 1200, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
exit(0);
}
else
Expand Down
2 changes: 1 addition & 1 deletion source/main_mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
{
if((old_pad & (BUTTON_SELECT | BUTTON_L2)) && file_exists("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self"))
{
sysProcessExitSpawn2("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self", NULL, NULL, NULL, 0, 3071, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
sysProcessExitSpawn2("/dev_hdd0/game/HTSS00003/USRDIR/showtime.self", NULL, NULL, NULL, 0, 1200, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
return r;
}
else
Expand Down
66 changes: 63 additions & 3 deletions source/main_payload.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475();
}
else if(is_firm_48X())
else if(is_firm_489())
{
firmware = 0x489C;
//fw_ver = 0xBF04;
Expand All @@ -277,6 +277,24 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475();
}
else if(is_firm_490())
{
firmware = 0x490C;
//fw_ver = 0x10b14;
off_idps = 0x80000000003E2E30ULL;
off_idps2 = 0x8000000000474AF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_480();
}
else if(is_firm_491())
{
firmware = 0x491C;
//fw_ver = 0x10b28;
off_idps = 0x80000000003E2E30ULL;
off_idps2 = 0x8000000000474AF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475();
}
else if(is_firm_421dex())
{
firmware = 0x421D;
Expand Down Expand Up @@ -469,7 +487,7 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_481dex();
}
else if(is_firm_48Xdex())
else if(is_firm_489dex())
{
firmware = 0x489D;
//fw_ver = 0xBF04;
Expand All @@ -478,6 +496,24 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_481dex();
}
else if(is_firm_490dex())
{
firmware = 0x490D;
//fw_ver = 0xBF04;
off_idps = 0x8000000000409A30ULL;
off_idps2 = 0x800000000049CAF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_481dex();
}
else if(is_firm_49Xdex())
{
firmware = 0x491D;
//fw_ver = 0xBF04;
off_idps = 0x8000000000409A30ULL;
off_idps2 = 0x800000000049CAF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_481dex();
}
else if(is_firm_460deh())
{
firmware = 0x460E;
Expand Down Expand Up @@ -604,7 +640,7 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475deh();
}
else if(is_firm_48Xdeh())
else if(is_firm_489deh())
{
firmware = 0x489E;
//fw_ver = 0xBF04;
Expand All @@ -613,6 +649,24 @@
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475deh();
}
else if(is_firm_490deh())
{
firmware = 0x490E;
//fw_ver = 0xBF04;
off_idps = 0x80000000004326B0ULL;
off_idps2 = 0x80000000004C4AF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475deh();
}
else if(is_firm_49Xdeh())
{
firmware = 0x491E;
//fw_ver = 0xBF04;
off_idps = 0x80000000004326B0ULL;
off_idps2 = 0x80000000004C4AF4ULL;
off_psid = off_idps2 + 0x18ULL;
payload_mode = is_payload_loaded_475deh();
}

if(is_cobra_based()) use_cobra = true;

Expand Down Expand Up @@ -1209,6 +1263,7 @@
case 0x487C:
case 0x488C:
case 0x489C:
case 0x491C:
set_bdvdemu_475(payload_mode);
switch(payload_mode)
{
Expand Down Expand Up @@ -1258,6 +1313,8 @@
case 0x487E:
case 0x488E:
case 0x489E:
case 0x490E:
case 0x491E:
set_bdvdemu_475deh(payload_mode);
switch(payload_mode)
{
Expand All @@ -1276,6 +1333,7 @@
}
break;
case 0x480C:
case 0x490C:
set_bdvdemu_480(payload_mode);
switch(payload_mode)
{
Expand Down Expand Up @@ -1338,6 +1396,8 @@
case 0x487D:
case 0x488D:
case 0x489D:
case 0x490D:
case 0x491D:
set_bdvdemu_481dex(payload_mode);
switch(payload_mode)
{
Expand Down
6 changes: 3 additions & 3 deletions source/mount_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void launch_showtime(bool playmode)
fun_exit();
SaveGameList();

sysProcessExitSpawn2((const char*)stself, NULL, NULL, NULL, 0, 3071, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
sysProcessExitSpawn2((const char*)stself, NULL, NULL, NULL, 0, 1200, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
exit(0);
}

Expand All @@ -312,7 +312,7 @@ void launch_showtime(bool playmode)
fun_exit();
SaveGameList();

sysProcessExitSpawn2((const char*)MOVIAN, NULL, NULL, NULL, 0, 3071, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
sysProcessExitSpawn2((const char*)MOVIAN, NULL, NULL, NULL, 0, 1200, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
exit(0);
}

Expand All @@ -321,7 +321,7 @@ void launch_showtime(bool playmode)
fun_exit();
SaveGameList();

sysProcessExitSpawn2((const char*)SHOWTIME, NULL, NULL, NULL, 0, 3071, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
sysProcessExitSpawn2((const char*)SHOWTIME, NULL, NULL, NULL, 0, 1200, SYS_PROCESS_SPAWN_STACK_SIZE_1M);
exit(0);
}
}
Expand Down
Loading

0 comments on commit ea56cd4

Please sign in to comment.