unbreak NO_FRONTEND build
authornotaz <notasas@gmail.com>
Sun, 11 May 2025 23:34:26 +0000 (02:34 +0300)
committernotaz <notasas@gmail.com>
Sun, 11 May 2025 23:34:26 +0000 (02:34 +0300)
frontend/main.c

index 6f581a8..5486ebd 100644 (file)
@@ -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')