mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Rename np_is_server to netplay_is_server
This commit is contained in:
parent
df3b090d7a
commit
a7d4379011
@ -311,7 +311,7 @@ bool np_get_info(netplay_t *netplay)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool np_is_server(netplay_t* netplay)
|
bool netplay_is_server(netplay_t* netplay)
|
||||||
{
|
{
|
||||||
if (!netplay)
|
if (!netplay)
|
||||||
return false;
|
return false;
|
||||||
|
@ -137,7 +137,7 @@ static bool netplay_net_init_buffers(netplay_t *netplay)
|
|||||||
|
|
||||||
static bool netplay_net_info_cb(netplay_t* netplay, unsigned frames)
|
static bool netplay_net_info_cb(netplay_t* netplay, unsigned frames)
|
||||||
{
|
{
|
||||||
if (np_is_server(netplay))
|
if (netplay_is_server(netplay))
|
||||||
{
|
{
|
||||||
if (!np_send_info(netplay))
|
if (!np_send_info(netplay))
|
||||||
return false;
|
return false;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#ifndef __RARCH_NETPLAY_PRIVATE_H
|
#ifndef __RARCH_NETPLAY_PRIVATE_H
|
||||||
#define __RARCH_NETPLAY_PRIVATE_H
|
#define __RARCH_NETPLAY_PRIVATE_H
|
||||||
|
|
||||||
#include "netplay.h"
|
#include "netplay.h"
|
||||||
|
|
||||||
#include <net/net_compat.h>
|
#include <net/net_compat.h>
|
||||||
@ -149,6 +150,7 @@ bool np_bsv_parse_header(const uint32_t *header, uint32_t magic);
|
|||||||
uint32_t np_impl_magic(void);
|
uint32_t np_impl_magic(void);
|
||||||
bool np_send_info(netplay_t *netplay);
|
bool np_send_info(netplay_t *netplay);
|
||||||
bool np_get_info(netplay_t *netplay);
|
bool np_get_info(netplay_t *netplay);
|
||||||
bool np_is_server(netplay_t* netplay);
|
bool netplay_is_server(netplay_t* netplay);
|
||||||
bool np_is_spectate(netplay_t* netplay);
|
bool np_is_spectate(netplay_t* netplay);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,7 +41,7 @@ static void netplay_spectate_pre_frame(netplay_t *netplay)
|
|||||||
fd_set fds;
|
fd_set fds;
|
||||||
struct timeval tmp_tv = {0};
|
struct timeval tmp_tv = {0};
|
||||||
|
|
||||||
if (!np_is_server(netplay))
|
if (!netplay_is_server(netplay))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
@ -133,7 +133,7 @@ static void netplay_spectate_post_frame(netplay_t *netplay)
|
|||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
if (!np_is_server(netplay))
|
if (!netplay_is_server(netplay))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < MAX_SPECTATORS; i++)
|
for (i = 0; i < MAX_SPECTATORS; i++)
|
||||||
@ -165,7 +165,7 @@ static void netplay_spectate_post_frame(netplay_t *netplay)
|
|||||||
static bool netplay_spectate_info_cb(netplay_t *netplay, unsigned frames)
|
static bool netplay_spectate_info_cb(netplay_t *netplay, unsigned frames)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
if(np_is_server(netplay))
|
if(netplay_is_server(netplay))
|
||||||
{
|
{
|
||||||
if(!np_get_info(netplay))
|
if(!np_get_info(netplay))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user