Skip to content

Commit

Permalink
change for new notif script
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent-FK <[email protected]>
  • Loading branch information
Vincent-FK committed May 15, 2021
1 parent 5eb2635 commit c3de812
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion menu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ uint32 S9xReadJoypad (int which1)
char shell_cmd[100];
FILE *fp;
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: %s\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_name[aspect_ratio]);
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, aspect_ratio_name[aspect_ratio]);
system(shell_cmd);

// Save config file
Expand Down
6 changes: 3 additions & 3 deletions menu/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ void run_menu_loop()

/// ----- Hud Msg -----
sprintf(shell_cmd, "%s %d \" SAVED IN SLOT %d\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
system(shell_cmd);
stop_menu_loop = 1;
}
Expand Down Expand Up @@ -904,11 +904,11 @@ void run_menu_loop()
/// ----- Hud Msg -----
if(quick_load_slot_chosen){
sprintf(shell_cmd, "%s %d \" LOADED FROM AUTO SAVE\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP);
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP);
}
else{
sprintf(shell_cmd, "%s %d \" LOADED FROM SLOT %d\"",
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
}
system(shell_cmd);
stop_menu_loop = 1;
Expand Down
4 changes: 2 additions & 2 deletions menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
#define SHELL_CMD_VOLUME_SET "volume set"
#define SHELL_CMD_BRIGHTNESS_GET "brightness get"
#define SHELL_CMD_BRIGHTNESS_SET "brightness set"
#define SHELL_CMD_NOTIF "notif_set"
#define SHELL_CMD_NOTIF_CLEAR "notif_clear"
#define SHELL_CMD_NOTIF_SET "notif set"
#define SHELL_CMD_NOTIF_CLEAR "notif clear"
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"
Expand Down

0 comments on commit c3de812

Please sign in to comment.