Fix up saving in multiplayer

By default allow only settings controllers to save the game. Use actual file names to help prevent possible save file overriding as savexx is unreliable online. Prevent quicksave behavior from working with the rotator. Force a unique netgame subfolder for multiplayer saves to remove the ability to override singleplayer saves. Send over the host's -loadgame argument to make loading easier (will not override the guest's -loadgame in case they need a special file name).
This commit is contained in:
Boondorl 2025-07-02 10:52:51 -04:00 committed by Ricardo Luís Vaz Silva
commit cf9a9097b9
7 changed files with 110 additions and 9 deletions

View file

@ -713,7 +713,7 @@ UNSAFE_CCMD(save)
Printf("saving to an absolute path is not allowed\n");
return;
}
if (fname.IndexOf("..") > 0)
if (fname.IndexOf("..") >= 0)
{
Printf("'..' not allowed in file names\n");
return;