Initialize with the quickstart command (fixes #121)
This commit is contained in:
@@ -532,6 +532,14 @@ namespace Barotrauma
|
|||||||
return;
|
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);
|
GameMain.MainMenuScreen.QuickStart(fixedSeed: false, subName, difficulty, levelGenerationParams);
|
||||||
|
|
||||||
}, getValidArgs: () => new[] { SubmarineInfo.SavedSubmarines.Select(s => s.Name).Distinct().OrderBy(s => s).ToArray() }));
|
}, getValidArgs: () => new[] { SubmarineInfo.SavedSubmarines.Select(s => s.Name).Distinct().OrderBy(s => s).ToArray() }));
|
||||||
|
|||||||
Reference in New Issue
Block a user