mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
Move deinit_netplay to netplay.c
This commit is contained in:
parent
a150cb84bd
commit
7f56e5c214
@ -1626,6 +1626,15 @@ void netplay_post_frame(netplay_t *netplay)
|
||||
netplay_post_frame_net(netplay);
|
||||
}
|
||||
|
||||
void deinit_netplay(void)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
netplay_t *netplay = (netplay_t*)driver->netplay_data;
|
||||
if (netplay)
|
||||
netplay_free(netplay);
|
||||
driver->netplay_data = NULL;
|
||||
}
|
||||
|
||||
#define RARCH_DEFAULT_PORT 55435
|
||||
|
||||
/**
|
||||
|
@ -109,5 +109,7 @@ void netplay_post_frame(netplay_t *handle);
|
||||
**/
|
||||
bool init_netplay(void);
|
||||
|
||||
void deinit_netplay(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -2765,12 +2765,7 @@ bool rarch_main_command(unsigned cmd)
|
||||
break;
|
||||
case RARCH_CMD_NETPLAY_DEINIT:
|
||||
#ifdef HAVE_NETPLAY
|
||||
{
|
||||
netplay_t *netplay = (netplay_t*)driver->netplay_data;
|
||||
if (netplay)
|
||||
netplay_free(netplay);
|
||||
driver->netplay_data = NULL;
|
||||
}
|
||||
deinit_netplay();
|
||||
#endif
|
||||
break;
|
||||
case RARCH_CMD_NETWORK_DEINIT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user