lua now runs on sub editor, added Game.GetEnabledContentPackages back for compatibility and printerror

This commit is contained in:
Evil Factory
2022-04-10 18:58:25 -03:00
parent d5eb804de9
commit 96fdefb9ed
5 changed files with 18 additions and 2 deletions
@@ -1042,12 +1042,15 @@ namespace Barotrauma
GameSession gameSession = new GameSession(backedUpSubInfo, "", GameModePreset.TestMode, CampaignSettings.Empty, null);
gameSession.StartRound(null, false);
(gameSession.GameMode as TestGameMode).OnRoundEnd = () =>
{
Submarine.Unload();
GameMain.SubEditorScreen.Select();
};
GameMain.Lua.Initialize();
return true;
}
@@ -1316,6 +1319,8 @@ namespace Barotrauma
public void Select(bool enableAutoSave = true)
{
GameMain.Lua.Stop();
base.Select();
GUI.PreventPauseMenuToggle = false;