mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Fix compilation problem when HAVE_BSV_MOVIE is not defined
This commit is contained in:
parent
6a310ecfed
commit
8564b4f8e3
@ -948,7 +948,7 @@ bool command_event_save_auto_state(
|
||||
void command_event_init_cheats(
|
||||
bool apply_cheats_after_load,
|
||||
const char *path_cheat_db,
|
||||
bsv_movie_t *bsv_movie_state_handle)
|
||||
void *bsv_movie_data)
|
||||
{
|
||||
#ifdef HAVE_NETWORKING
|
||||
bool allow_cheats = !netplay_driver_ctl(
|
||||
@ -957,6 +957,8 @@ void command_event_init_cheats(
|
||||
bool allow_cheats = true;
|
||||
#endif
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
bsv_movie_t *
|
||||
bsv_movie_state_handle = (bsv_movie_t*)bsv_movie_data;
|
||||
allow_cheats &= !(bsv_movie_state_handle != NULL);
|
||||
#endif
|
||||
|
||||
|
@ -382,7 +382,7 @@ bool command_set_shader(command_t *cmd, const char *arg);
|
||||
void command_event_init_cheats(
|
||||
bool apply_cheats_after_load,
|
||||
const char *path_cheat_db,
|
||||
bsv_movie_t *bsv_movie_state_handle);
|
||||
void *bsv_movie_data);
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_COMMAND)
|
||||
|
12
retroarch.c
12
retroarch.c
@ -30392,9 +30392,15 @@ bool retroarch_main_init(int argc, char *argv[])
|
||||
|
||||
#ifdef HAVE_CHEATS
|
||||
cheat_manager_state_free();
|
||||
command_event_init_cheats(settings->bools.apply_cheats_after_load,
|
||||
settings->paths.path_cheat_database,
|
||||
p_rarch->bsv_movie_state_handle);
|
||||
command_event_init_cheats(
|
||||
settings->bools.apply_cheats_after_load,
|
||||
settings->paths.path_cheat_database,
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
p_rarch->bsv_movie_state_handle
|
||||
#else
|
||||
NULL
|
||||
#endif
|
||||
);
|
||||
#endif
|
||||
drivers_init(p_rarch, settings, DRIVERS_CMD_ALL, verbosity_enabled);
|
||||
#ifdef HAVE_COMMAND
|
||||
|
Loading…
x
Reference in New Issue
Block a user