Skip to content

Commit

Permalink
Added PS3MAPI opcodes from Cobra 8.5 + Auto-Toggle wMM Lite
Browse files Browse the repository at this point in the history
-
  • Loading branch information
aldostools committed May 19, 2024
1 parent 9d58c8c commit 0485d9a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cobra/syscall8.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#define SYSCALL8_OPCODE_PROC_CREATE_THREAD 0x6E03 // 8.2 not enough params for PS3MAPI_OPCODE // TheRouletteBoi

#ifdef DEBUG
// These debug opcode changed to odd numbers in version 7.0 to minmize crashes with lv1 peek apps
// These debug opcode changed to odd numbers in version 7.0 to minimize crashes with lv1 peek apps
#define SYSCALL8_OPCODE_DUMP_STACK_TRACE 0x5003
#define SYSCALL8_OPCODE_GENERIC_DEBUG 0x5005
#define SYSCALL8_OPCODE_PSP_SONY_BUG 0x5007
Expand Down
1 change: 1 addition & 0 deletions flags/flags_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define ARTEMIS_PRX

//// EXTRA FEATURES ////
//#define AUTO_TOGGLE_ON_XMB // auto switch to full edition (L1+R1+TRIANGLE) when a game returns to XMB
//#define GET_KLICENSEE // /klic.ps3
//#define XMB_SCREENSHOT // screenshot XMB using L2 + R2 + SELECT + START (thanks to 3141card)
//#define SWAP_KERNEL // load custom lv2_kernel.self patching LV1 and soft rebooting (use /copy.ps3) [requires QA flag enabled]
Expand Down
16 changes: 16 additions & 0 deletions include/poll/poll.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ static void poll_start_play_time(void)
if(!is_artemis_app)
clear_codelist();
#endif

// auto-reload full edition after return to XMB
#ifdef AUTO_TOGGLE_ON_XMB
#define TOGGLE_PLUGIN "/dev_hdd0/plugins/webftp_server.sprx"
#define unload_me(mode) {wm_unload_combo = mode; wwwd_stop();}

if(!syscalls_removed && !is_mounting && !refreshing_xml && file_exists(TOGGLE_PLUGIN))
{
create_file(WM_RELOAD_FILE); // create semaphore file

load_vsh_module(TOGGLE_PLUGIN);

unload_me(3);
return;
}
#endif
}
#endif
#endif
Expand Down
28 changes: 17 additions & 11 deletions include/ps3mapi/ps3mapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,32 @@
#define PS3MAPI_OPCODE_PHOTO_GUI 0x2222
#define PS3MAPI_OPCODE_RING_BUZZER 0x2245

//RIF
#define PS3MAPI_OPCODE_GET_SKIP_EXISTING_RIF 0x2240
#define PS3MAPI_OPCODE_SKIP_EXISTING_RIF 0x2241
#define PS3MAPI_OPCODE_CREATE_RIF 0x2249

//ACCOUNT
#define PS3MAPI_OPCODE_SET_FAKE_ACCOUNTID 0x2247
#define PS3MAPI_OPCODE_ACTIVATE_ACCOUNT 0x2248

//SAVEDATA
#define PS3MAPI_OPCODE_CONVERT_SAVEDATA 0x2246
//MISC Cobra 8.5
#define PS3MAPI_OPCODE_GAMEBOOT 0x2250
#define PS3MAPI_OPCODE_EPILEPSY_WARNING 0x2251
#define PS3MAPI_OPCODE_COLDBOOT 0x2252
#define PS3MAPI_OPCODE_TROPHY 0x2253

//FAN
#define PS3MAPI_OPCODE_GET_FAN_SPEED 0x2233
#define PS3MAPI_OPCODE_SET_FAN_SPEED 0x2235
#define PS3MAPI_OPCODE_SET_PS2_FAN_SPEED 0x2236

//RIF
#define PS3MAPI_OPCODE_GET_SKIP_EXISTING_RIF 0x2240
#define PS3MAPI_OPCODE_SKIP_EXISTING_RIF 0x2241
#define PS3MAPI_OPCODE_CREATE_RIF 0x2249

//QA
#define PS3MAPI_OPCODE_CHECK_QA 0x2242
#define PS3MAPI_OPCODE_SET_QA 0x2243

//SAVEDATA
#define PS3MAPI_OPCODE_CONVERT_SAVEDATA 0x2246

//ACCOUNT
#define PS3MAPI_OPCODE_SET_FAKE_ACCOUNTID 0x2247
#define PS3MAPI_OPCODE_ACTIVATE_ACCOUNT 0x2248
//

//SC8
Expand Down

0 comments on commit 0485d9a

Please sign in to comment.