mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +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(
|
void command_event_init_cheats(
|
||||||
bool apply_cheats_after_load,
|
bool apply_cheats_after_load,
|
||||||
const char *path_cheat_db,
|
const char *path_cheat_db,
|
||||||
bsv_movie_t *bsv_movie_state_handle)
|
void *bsv_movie_data)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
bool allow_cheats = !netplay_driver_ctl(
|
bool allow_cheats = !netplay_driver_ctl(
|
||||||
@ -957,6 +957,8 @@ void command_event_init_cheats(
|
|||||||
bool allow_cheats = true;
|
bool allow_cheats = true;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BSV_MOVIE
|
#ifdef HAVE_BSV_MOVIE
|
||||||
|
bsv_movie_t *
|
||||||
|
bsv_movie_state_handle = (bsv_movie_t*)bsv_movie_data;
|
||||||
allow_cheats &= !(bsv_movie_state_handle != NULL);
|
allow_cheats &= !(bsv_movie_state_handle != NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ bool command_set_shader(command_t *cmd, const char *arg);
|
|||||||
void command_event_init_cheats(
|
void command_event_init_cheats(
|
||||||
bool apply_cheats_after_load,
|
bool apply_cheats_after_load,
|
||||||
const char *path_cheat_db,
|
const char *path_cheat_db,
|
||||||
bsv_movie_t *bsv_movie_state_handle);
|
void *bsv_movie_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_COMMAND)
|
#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
|
#ifdef HAVE_CHEATS
|
||||||
cheat_manager_state_free();
|
cheat_manager_state_free();
|
||||||
command_event_init_cheats(settings->bools.apply_cheats_after_load,
|
command_event_init_cheats(
|
||||||
settings->paths.path_cheat_database,
|
settings->bools.apply_cheats_after_load,
|
||||||
p_rarch->bsv_movie_state_handle);
|
settings->paths.path_cheat_database,
|
||||||
|
#ifdef HAVE_BSV_MOVIE
|
||||||
|
p_rarch->bsv_movie_state_handle
|
||||||
|
#else
|
||||||
|
NULL
|
||||||
|
#endif
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
drivers_init(p_rarch, settings, DRIVERS_CMD_ALL, verbosity_enabled);
|
drivers_init(p_rarch, settings, DRIVERS_CMD_ALL, verbosity_enabled);
|
||||||
#ifdef HAVE_COMMAND
|
#ifdef HAVE_COMMAND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user