mirror of
https://github.com/libretro/RetroArch
synced 2025-03-16 07:21:03 +00:00
Netplay Stuff - Addendum (#13378)
Prevents long-term pausing from clients dishonoring allow pausing. Missing crediting.
This commit is contained in:
parent
690c802921
commit
cda66d09c3
@ -350,6 +350,7 @@ reztek
|
||||
Richard Howell (rmaz)
|
||||
rlnilsen
|
||||
Rob Loach (RobLoach)
|
||||
Roberto V. Rampim (Cthulhu)
|
||||
Robin de Rooij (rrooij)
|
||||
Romain Gay (vikbez)
|
||||
Romain Graillot (notnotme)
|
||||
|
@ -5842,6 +5842,11 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
if (connection->mode != NETPLAY_CONNECTION_PLAYING)
|
||||
break;
|
||||
|
||||
/* If the client does not honor our setting,
|
||||
refuse to globally pause. */
|
||||
if (!netplay->allow_pausing)
|
||||
break;
|
||||
|
||||
/* Inform peers */
|
||||
snprintf(msg, sizeof(msg),
|
||||
msg_hash_to_str(MSG_NETPLAY_PEER_PAUSED),
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2017 - Gregor Richards
|
||||
* Copyright (C) 2021 - Roberto V. Rampim
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
|
Loading…
x
Reference in New Issue
Block a user