Netplay Stuff - Addendum (#13378)

Prevents long-term pausing from clients dishonoring allow pausing.

Missing crediting.
This commit is contained in:
Cthulhu-throwaway 2021-12-19 16:43:59 -03:00 committed by GitHub
parent 690c802921
commit cda66d09c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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),

View File

@ -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-