mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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.
This commit is contained in:
parent
99a341f379
commit
da2f644428
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue