From ef28f7c5fe4bcc7b571f5efda9fb99bd6fbd103c Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Mon, 6 Mar 2023 20:08:26 -0300 Subject: [PATCH] Initialize with the quickstart command (fixes #121) --- Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs b/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs index 06a5ccb91..f6a770b46 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs @@ -532,6 +532,14 @@ namespace Barotrauma return; } + bool luaCsEnabled = true; + if (args.Length > 3) + { + bool.TryParse(args[3], out luaCsEnabled); + } + + if (luaCsEnabled) { GameMain.LuaCs.Initialize(); } + GameMain.MainMenuScreen.QuickStart(fixedSeed: false, subName, difficulty, levelGenerationParams); }, getValidArgs: () => new[] { SubmarineInfo.SavedSubmarines.Select(s => s.Name).Distinct().OrderBy(s => s).ToArray() }));