mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Restrict number of lag frames.
This commit is contained in:
parent
b96ab2982c
commit
b4f0d9b8f8
@ -375,6 +375,9 @@ static void init_buffers(netplay_t *handle)
|
|||||||
|
|
||||||
netplay_t *netplay_new(const char *server, uint16_t port, unsigned frames, const struct snes_callbacks *cb)
|
netplay_t *netplay_new(const char *server, uint16_t port, unsigned frames, const struct snes_callbacks *cb)
|
||||||
{
|
{
|
||||||
|
if (frames > UDP_FRAME_PACKETS)
|
||||||
|
frames = UDP_FRAME_PACKETS;
|
||||||
|
|
||||||
netplay_t *handle = calloc(1, sizeof(*handle));
|
netplay_t *handle = calloc(1, sizeof(*handle));
|
||||||
if (!handle)
|
if (!handle)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user