Backport this regression fix for builds with no network support - this

should presumably restore 3DS performance according to danieljg
This commit is contained in:
twinaphex 2017-08-12 16:47:13 +02:00
parent 74a22169ac
commit 921418af03

View File

@ -1865,13 +1865,17 @@ bool command_event(enum event_command cmd, void *data)
if (settings->bools.cheevos_hardcore_mode_enable) if (settings->bools.cheevos_hardcore_mode_enable)
return false; return false;
#endif #endif
if (settings->bools.rewind_enable)
{
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
/* Only enable state manager if netplay is not underway /* Only enable state manager if netplay is not underway
TODO: Add a setting for these tweaks */ TODO: Add a setting for these tweaks */
if (settings->bools.rewind_enable if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
&& !netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
#endif #endif
state_manager_event_init((unsigned)settings->rewind_buffer_size); {
state_manager_event_init((unsigned)settings->rewind_buffer_size);
}
}
} }
break; break;
case CMD_EVENT_REWIND_TOGGLE: case CMD_EVENT_REWIND_TOGGLE: