Skip to content

Commit dcd6186

Browse files
committed
use single powerdown script
Signed-off-by: Vincent-FK <[email protected]>
1 parent f6b8feb commit dcd6186

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

emu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void quick_save_and_poweroff()
5656
Uint32 start = SDL_GetTicks();
5757

5858
/* Send command to cancel any previously scheduled powerdown */
59-
fp = popen(SHELL_CMD_CANCEL_SCHED_POWERDOWN, "r");
59+
fp = popen(SHELL_CMD_POWERDOWN_HANDLE, "r");
6060
if (fp == NULL)
6161
{
6262
/* Countdown is still ticking, so better do nothing

sys.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
5454
#define SHELL_CMD_NOTIF_SET "notif set"
5555
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
5656
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
57-
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"
57+
#define SHELL_CMD_POWERDOWN "powerdown"
58+
#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle"
5859
#define SHELL_CMD_INSTANT_PLAY "instant_play"
59-
#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey"
6060
#define SHELL_CMD_KEYMAP_DEFAULT "keymap default"
6161
#define SHELL_CMD_KEYMAP_RESUME "keymap resume"
6262

sys/sdl/sdl-menu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ void run_menu_loop()
921921
if(menu_confirmation){
922922
MENU_DEBUG_PRINTF("Powerdown - confirmed\n");
923923
/// ----- Shell cmd ----
924-
execlp(SHELL_CMD_SHUTDOWN_FUNKEY, SHELL_CMD_SHUTDOWN_FUNKEY, NULL);
925-
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_SHUTDOWN_FUNKEY);
924+
execlp(SHELL_CMD_POWERDOWN, SHELL_CMD_POWERDOWN, NULL);
925+
MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_POWERDOWN);
926926
exit(0);
927927
}
928928
else{

0 commit comments

Comments
 (0)