Skip to content

Commit

Permalink
Fix regression for builds with no network support
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljg committed Aug 12, 2017
1 parent 602bd12 commit a87fc9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,13 +1865,17 @@ bool command_event(enum event_command cmd, void *data)
if (settings->bools.cheevos_hardcore_mode_enable)
return false;
#endif
if (settings->bools.rewind_enable)
{
#ifdef HAVE_NETWORKING
/* Only enable state manager if netplay is not underway
TODO: Add a setting for these tweaks */
if (settings->bools.rewind_enable
&& !netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
#endif
{
state_manager_event_init((unsigned)settings->rewind_buffer_size);
}
}
}
break;
case CMD_EVENT_REWIND_TOGGLE:
Expand Down

0 comments on commit a87fc9c

Please sign in to comment.