Build warning fix

This commit is contained in:
twinaphex 2017-05-30 02:58:59 +02:00
parent eeff3b87e8
commit c5fe9f4252

View File

@ -1673,23 +1673,20 @@ bool command_event(enum event_command cmd, void *data)
#endif #endif
break; break;
case CMD_EVENT_LOAD_STATE: case CMD_EVENT_LOAD_STATE:
{ /* Immutable - disallow savestate load when
#ifdef HAVE_CHEEVOS * we absolutely cannot change game state. */
settings_t *settings = config_get_ptr(); if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
#endif return false;
/* Immutable - disallow savestate load when
* we absolutely cannot change game state. */
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
return false;
#ifdef HAVE_CHEEVOS #ifdef HAVE_CHEEVOS
{
settings_t *settings = config_get_ptr();
if (settings->bools.cheevos_hardcore_mode_enable) if (settings->bools.cheevos_hardcore_mode_enable)
return false; return false;
}
#endif #endif
return command_event_main_state(cmd); return command_event_main_state(cmd);
}
break;
case CMD_EVENT_UNDO_LOAD_STATE: case CMD_EVENT_UNDO_LOAD_STATE:
return command_event_main_state(cmd); return command_event_main_state(cmd);
case CMD_EVENT_UNDO_SAVE_STATE: case CMD_EVENT_UNDO_SAVE_STATE: