Skip to content

Commit

Permalink
netplay tweaks: disable rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
radius committed Jul 25, 2017
1 parent d889f59 commit c101b4c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,10 @@ bool command_event(enum event_command cmd, void *data)
if (settings->bools.cheevos_hardcore_mode_enable)
return false;
#endif

if (settings->bools.rewind_enable)
/* 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))
state_manager_event_init((unsigned)settings->rewind_buffer_size);
}
break;
Expand Down Expand Up @@ -2272,6 +2274,10 @@ bool command_event(enum event_command cmd, void *data)
command_event(CMD_EVENT_NETPLAY_DEINIT, NULL);
return false;
}

/* Disable rewind if it was enabled
TODO: Add a setting for these tweaks */
state_manager_event_deinit();
}
break;
/* init netplay via lobby when content is loaded */
Expand All @@ -2298,6 +2304,10 @@ bool command_event(enum event_command cmd, void *data)
}

string_list_free(hostname);

/* Disable rewind if it was enabled
TODO: Add a setting for these tweaks */
state_manager_event_deinit();
}
break;
/* init netplay via lobby when content is not loaded */
Expand All @@ -2324,6 +2334,10 @@ bool command_event(enum event_command cmd, void *data)
}

string_list_free(hostname);

/* Disable rewind if it was enabled
TODO: Add a setting for these tweaks */
state_manager_event_deinit();
}
break;
case CMD_EVENT_NETPLAY_FLIP_PLAYERS:
Expand Down

0 comments on commit c101b4c

Please sign in to comment.