mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Don't access global->bsv. directly
This commit is contained in:
parent
5d9e6bca60
commit
4131abf489
@ -1752,7 +1752,7 @@ bool init_netplay(void)
|
||||
if (!global->netplay.enable)
|
||||
return false;
|
||||
|
||||
if (global->bsv.movie_start_playback)
|
||||
if (bsv_movie_ctl(BSV_MOVIE_CTL_START_PLAYBACK, NULL))
|
||||
{
|
||||
RARCH_WARN("%s\n", msg_hash_to_str(MSG_NETPLAY_FAILED_MOVIE_PLAYBACK_HAS_STARTED));
|
||||
return false;
|
||||
|
4
rewind.c
4
rewind.c
@ -685,7 +685,7 @@ void state_manager_check_rewind(bool pressed)
|
||||
runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL) ? 1 : 30, true);
|
||||
core.retro_unserialize(buf, rewind_state.size);
|
||||
|
||||
if (global->bsv.movie)
|
||||
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
||||
bsv_movie_frame_rewind(global->bsv.movie);
|
||||
}
|
||||
else
|
||||
@ -699,7 +699,7 @@ void state_manager_check_rewind(bool pressed)
|
||||
cnt = (cnt + 1) % (settings->rewind_granularity ?
|
||||
settings->rewind_granularity : 1); /* Avoid possible SIGFPE. */
|
||||
|
||||
if ((cnt == 0) || global->bsv.movie)
|
||||
if ((cnt == 0) || bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
||||
{
|
||||
static struct retro_perf_counter rewind_serialize = {0};
|
||||
void *state = NULL;
|
||||
|
@ -560,7 +560,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
||||
}
|
||||
break;
|
||||
case RUNLOOP_CTL_CHECK_MOVIE:
|
||||
if (global->bsv.movie_playback)
|
||||
if (bsv_movie_ctl(BSV_MOVIE_CTL_PLAYBACK_ON, NULL))
|
||||
return runloop_ctl(RUNLOOP_CTL_CHECK_MOVIE_PLAYBACK, NULL);
|
||||
if (!bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
||||
return runloop_ctl(RUNLOOP_CTL_CHECK_MOVIE_INIT, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user