mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 03:00:24 +00:00
Removing RARCH_ from Netplay stall reasons.
This commit is contained in:
parent
1e1abf6951
commit
b334f04bd5
@ -1002,12 +1002,12 @@ static bool netplay_poll(void)
|
||||
/* Consider stalling */
|
||||
switch (netplay_data->stall)
|
||||
{
|
||||
case RARCH_NETPLAY_STALL_RUNNING_FAST:
|
||||
case NETPLAY_STALL_RUNNING_FAST:
|
||||
if (netplay_data->read_frame_count >= netplay_data->self_frame_count)
|
||||
netplay_data->stall = RARCH_NETPLAY_STALL_NONE;
|
||||
netplay_data->stall = NETPLAY_STALL_NONE;
|
||||
break;
|
||||
|
||||
case RARCH_NETPLAY_STALL_NO_CONNECTION:
|
||||
case NETPLAY_STALL_NO_CONNECTION:
|
||||
/* We certainly haven't fixed this */
|
||||
break;
|
||||
|
||||
@ -1015,7 +1015,7 @@ static bool netplay_poll(void)
|
||||
if (netplay_data->read_frame_count + netplay_data->delay_frames
|
||||
<= netplay_data->self_frame_count)
|
||||
{
|
||||
netplay_data->stall = RARCH_NETPLAY_STALL_RUNNING_FAST;
|
||||
netplay_data->stall = NETPLAY_STALL_RUNNING_FAST;
|
||||
netplay_data->stall_time = cpu_features_get_time_usec();
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ static void netplay_handshake_ready(netplay_t *netplay, struct netplay_connectio
|
||||
}
|
||||
|
||||
/* Unstall if we were waiting for this */
|
||||
if (netplay->stall == RARCH_NETPLAY_STALL_NO_CONNECTION)
|
||||
if (netplay->stall == NETPLAY_STALL_NO_CONNECTION)
|
||||
netplay->stall = 0;
|
||||
|
||||
connection->mode = NETPLAY_CONNECTION_PLAYING;
|
||||
|
@ -109,7 +109,7 @@ static bool netplay_net_pre_frame(netplay_t *netplay)
|
||||
(netplay->quirks & (NETPLAY_QUIRK_NO_SAVESTATES|NETPLAY_QUIRK_NO_TRANSMISSION)) &&
|
||||
(netplay->connections_size == 0 || !netplay->connections[0].active ||
|
||||
netplay->connections[0].mode < NETPLAY_CONNECTION_CONNECTED))
|
||||
netplay->stall = RARCH_NETPLAY_STALL_NO_CONNECTION;
|
||||
netplay->stall = NETPLAY_STALL_NO_CONNECTION;
|
||||
}
|
||||
|
||||
if (netplay->is_server)
|
||||
@ -221,7 +221,7 @@ process:
|
||||
netplay->can_poll = true;
|
||||
input_poll_net();
|
||||
|
||||
return (netplay->stall != RARCH_NETPLAY_STALL_NO_CONNECTION);
|
||||
return (netplay->stall != NETPLAY_STALL_NO_CONNECTION);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -179,9 +179,9 @@ enum rarch_netplay_connection_mode
|
||||
|
||||
enum rarch_netplay_stall_reason
|
||||
{
|
||||
RARCH_NETPLAY_STALL_NONE = 0,
|
||||
RARCH_NETPLAY_STALL_RUNNING_FAST,
|
||||
RARCH_NETPLAY_STALL_NO_CONNECTION
|
||||
NETPLAY_STALL_NONE = 0,
|
||||
NETPLAY_STALL_RUNNING_FAST,
|
||||
NETPLAY_STALL_NO_CONNECTION
|
||||
};
|
||||
|
||||
struct delta_frame
|
||||
|
Loading…
Reference in New Issue
Block a user