Skip to content

Commit

Permalink
external tool option
Browse files Browse the repository at this point in the history
launch extra.self when L1+START (main menu)
  • Loading branch information
bucanero committed Nov 18, 2024
1 parent 80f48ef commit 5e3400e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/menu_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <string.h>
#include <stdio.h>
#include <io/pad.h>
#include <sys/process.h>

#include "sfo.h"
#include "saves.h"
Expand Down Expand Up @@ -584,6 +585,9 @@ static void doMainMenu(void)
else if (paddata[0].BTN_CROSS)
SetMenu(menu_sel+1);

else if (paddata[0].BTN_L1 && paddata[0].BTN_START && file_exists(APOLLO_PATH "EXTRA.SELF"))
sysProcessExitSpawn2(APOLLO_PATH "EXTRA.SELF", NULL, NULL, NULL, 0, 1001, SYS_PROCESS_SPAWN_STACK_SIZE_1M);

else if(paddata[0].BTN_CIRCLE && show_dialog(DIALOG_TYPE_YESNO, "Exit to XMB?"))
close_app = 1;
}
Expand Down

0 comments on commit 5e3400e

Please sign in to comment.