From da2f644428fc7351c10ce54ea4d6207c85eb495c Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Wed, 3 Jul 2019 21:36:40 +0000 Subject: [PATCH] Adds a possibility to disable saving of replay in autostart mode. Reviewed By: elexis Differential Revision: https://code.wildfiregames.com/D2017 This was SVN commit r22432. --- binaries/system/readme.txt | 1 + source/ps/GameSetup/GameSetup.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/binaries/system/readme.txt b/binaries/system/readme.txt index 28289db73b..a0e06db4e9 100644 --- a/binaries/system/readme.txt +++ b/binaries/system/readme.txt @@ -21,6 +21,7 @@ Autostart: -autostart-wonderduration=NUM sets the victory duration NUM for wonder victory condition (default 10 minutes) -autostart-relicduration=NUM sets the victory duration NUM for relic victory condition (default 10 minutes) -autostart-reliccount=NUM sets the number of relics for relic victory condition (default 2 relics) +-autostart-disable-replay disable saving of replays Multiplayer: -autostart-playername=NAME sets local player NAME (default 'anonymous') -autostart-host sets multiplayer host mode diff --git a/source/ps/GameSetup/GameSetup.cpp b/source/ps/GameSetup/GameSetup.cpp index 924766faaf..551d52b4b6 100644 --- a/source/ps/GameSetup/GameSetup.cpp +++ b/source/ps/GameSetup/GameSetup.cpp @@ -1216,6 +1216,7 @@ CStr8 LoadSettingsOfScenarioMap(const VfsPath &mapPath) * (default 10 minutes) * -autostart-reliccount=NUM sets the number of relics for relic victory condition * (default 2 relics) + * -autostart-disable-replay disable saving of replays * * Multiplayer: * -autostart-playername=NAME sets local player NAME (default 'anonymous') @@ -1250,7 +1251,7 @@ bool Autostart(const CmdLineArgs& args) return false; const bool nonVisual = args.Has("autostart-nonvisual"); - g_Game = new CGame(nonVisual, !nonVisual); + g_Game = new CGame(nonVisual, !args.Has("autostart-disable-replay")); ScriptInterface& scriptInterface = g_Game->GetSimulation2()->GetScriptInterface(); JSContext* cx = scriptInterface.GetContext();