From: notaz Date: Sun, 11 May 2025 23:34:26 +0000 (+0300) Subject: unbreak NO_FRONTEND build X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2af170079fa67860ddcc384b8e287fabf1ae7e6;p=pcsx_rearmed.git unbreak NO_FRONTEND build --- diff --git a/frontend/main.c b/frontend/main.c index 6f581a8b..5486ebd5 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -150,6 +150,8 @@ void emu_set_default_config(void) in_type[1] = PSE_PAD_TYPE_STANDARD; } +#ifndef NO_FRONTEND + void do_emu_action(void) { int ret; @@ -165,7 +167,6 @@ void do_emu_action(void) ret = emu_save_state(state_slot); snprintf(hud_msg, sizeof(hud_msg), ret == 0 ? "SAVED" : "FAIL!"); break; -#ifndef NO_FRONTEND case SACTION_ENTER_MENU: toggle_fast_forward(1); menu_loop(); @@ -269,7 +270,6 @@ do_state_slot: ret = padToggleAnalog(0); snprintf(hud_msg, sizeof(hud_msg), "ANALOG %s", ret ? "ON" : "OFF"); break; -#endif default: return; } @@ -277,6 +277,8 @@ do_state_slot: hud_new_msg = 3; } +#endif + static char basic_lcase(char c) { if ('A' <= c && c <= 'Z')