Don't access global->bsv. directly

This commit is contained in:
twinaphex 2015-12-01 00:08:02 +01:00
parent 5d9e6bca60
commit 4131abf489
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);