mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 19:20:24 +00:00
Build warning fix
This commit is contained in:
parent
eeff3b87e8
commit
c5fe9f4252
19
command.c
19
command.c
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user