Skip to content

Commit 5ab34a8

Browse files
committed
change for new notif script
Signed-off-by: Vincent-FK <[email protected]>
1 parent b573bc6 commit 5ab34a8

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

input.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ u32 update_input()
825825
/*sprintf(hud_msg, "SAVED IN SLOT %d", savestate_slot);
826826
set_hud_msg(hud_msg, 4);*/
827827
sprintf(shell_cmd, "%s %d \" SAVED IN SLOT %d\"",
828-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
828+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
829829
fp = popen(shell_cmd, "r");
830830
if (fp == NULL) {
831831
printf("Failed to run command %s\n", shell_cmd);
@@ -847,7 +847,7 @@ u32 update_input()
847847
/*sprintf(hud_msg, "LOADED FROM SLOT %d", savestate_slot);
848848
set_hud_msg(hud_msg, 4);*/
849849
sprintf(shell_cmd, "%s %d \" LOADED FROM SLOT %d\"",
850-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
850+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
851851
fp = popen(shell_cmd, "r");
852852
if (fp == NULL) {
853853
printf("Failed to run command %s\n", shell_cmd);
@@ -951,7 +951,7 @@ u32 update_input()
951951
/*sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
952952
set_hud_msg(hud_msg, 4);*/
953953
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
954-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
954+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
955955
fp = popen(shell_cmd, "r");
956956
if (fp == NULL) {
957957
printf("Failed to run command %s\n", shell_cmd);
@@ -977,7 +977,7 @@ u32 update_input()
977977
/*sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
978978
set_hud_msg(hud_msg, 4);*/
979979
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
980-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
980+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
981981
fp = popen(shell_cmd, "r");
982982
if (fp == NULL) {
983983
printf("Failed to run command %s\n", shell_cmd);
@@ -998,12 +998,12 @@ u32 update_input()
998998
if(aspect_ratio == ASPECT_RATIOS_TYPE_MANUAL){
999999
//sprintf(hud_msg, " DISP MODE: ZOOMED %d%%", aspect_ratio_factor_percent);
10001000
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: ZOOMED %d%%%%\"",
1001-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
1001+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, aspect_ratio_factor_percent);
10021002
}
10031003
else{
10041004
//sprintf(hud_msg, "DISPLAY MODE: %s", aspect_ratio_name[aspect_ratio]);
10051005
sprintf(shell_cmd, "%s %d \" DISPLAY MODE: %s\"",
1006-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, aspect_ratio_name[aspect_ratio]);
1006+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, aspect_ratio_name[aspect_ratio]);
10071007
}
10081008
//set_hud_msg(hud_msg, 4);
10091009
fp = popen(shell_cmd, "r");

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ int main(int argc, char *argv[])
469469
/** Set notif for BIOS */
470470
char shell_cmd[400];
471471
sprintf(shell_cmd, "%s 0 \" BIOS FILE MISSING^^Connect your FunKey S to ^your computer and copy the^BIOS file to the folder:^ Game Boy Advance/bios/^^The file must be called:^gba_bios.bin^Size=16384 Bytes^MD5=a860e8c0b6d573d191e4ec7d^b1b1e4f6^^For more instructions:^www.funkey-project.com^^Press any button to exit...\"",
472-
SHELL_CMD_NOTIF);
472+
SHELL_CMD_NOTIF_SET);
473473
system(shell_cmd);
474474

475475
while(gui_action == CURSOR_NONE)

menu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ void run_menu_loop()
852852

853853
/// ----- Hud Msg -----
854854
sprintf(shell_cmd, "%s %d \" SAVED IN SLOT %d\"",
855-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
855+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
856856
system(shell_cmd);
857857
stop_menu_loop = 1;
858858
}
@@ -881,11 +881,11 @@ void run_menu_loop()
881881
/// ----- Hud Msg -----
882882
if(quick_load_slot_chosen){
883883
sprintf(shell_cmd, "%s %d \" LOADED FROM AUTO SAVE\"",
884-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP);
884+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP);
885885
}
886886
else{
887887
sprintf(shell_cmd, "%s %d \" LOADED FROM SLOT %d\"",
888-
SHELL_CMD_NOTIF, NOTIF_SECONDS_DISP, savestate_slot+1);
888+
SHELL_CMD_NOTIF_SET, NOTIF_SECONDS_DISP, savestate_slot+1);
889889
}
890890
system(shell_cmd);
891891
stop_menu_loop = 1;

menu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
4040
#define SHELL_CMD_VOLUME_SET "volume set"
4141
#define SHELL_CMD_BRIGHTNESS_GET "brightness get"
4242
#define SHELL_CMD_BRIGHTNESS_SET "brightness set"
43-
#define SHELL_CMD_NOTIF "notif_set"
44-
#define SHELL_CMD_NOTIF_CLEAR "notif_clear"
43+
#define SHELL_CMD_NOTIF_SET "notif set"
44+
#define SHELL_CMD_NOTIF_CLEAR "notif clear"
4545
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
4646
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
4747
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"

0 commit comments

Comments
 (0)