mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
Actually USE the new slave options in config.
This commit is contained in:
parent
a3e3b3e790
commit
07cfd90dc6
@ -24,6 +24,7 @@
|
||||
|
||||
#include "netplay_private.h"
|
||||
|
||||
#include "../../configuration.h"
|
||||
#include "../../runloop.h"
|
||||
#include "../../tasks/tasks_internal.h"
|
||||
|
||||
@ -664,6 +665,7 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
uint32_t payload[2];
|
||||
uint32_t player = 0;
|
||||
bool slave = false;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
/* Check if they requested slave mode */
|
||||
if (cmd_size == sizeof(uint32_t))
|
||||
@ -684,6 +686,12 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
}
|
||||
|
||||
/* Check if their slave mode request corresponds with what we allow */
|
||||
if (settings->netplay.require_slaves)
|
||||
slave = true;
|
||||
else if (!settings->netplay.allow_slaves)
|
||||
slave = false;
|
||||
|
||||
payload[0] = htonl(netplay->self_frame_count + 1);
|
||||
|
||||
if (!netplay->is_server)
|
||||
|
Loading…
x
Reference in New Issue
Block a user