diff --git a/AUTHORS.h b/AUTHORS.h index d135c07de1..8ab3d2e88b 100644 --- a/AUTHORS.h +++ b/AUTHORS.h @@ -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) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index d77ad37d9d..6117b8dffe 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -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), diff --git a/tasks/task_netplay_nat_traversal.c b/tasks/task_netplay_nat_traversal.c index 1e9489effc..f7b5f55b06 100644 --- a/tasks/task_netplay_nat_traversal.c +++ b/tasks/task_netplay_nat_traversal.c @@ -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-