Changed plugins so they get Init-d before the sandbox game is created.

Changed NLog to dump Keen errors to Torch log too
Added some debug info
This commit is contained in:
Westin Miller
2018-01-24 17:24:08 -08:00
parent e6928b6ab1
commit 1e6b3faff8
7 changed files with 139 additions and 53 deletions

View File

@@ -353,10 +353,10 @@ namespace Torch
Log.Info($"Executing assembly: {Assembly.GetEntryAssembly().FullName}");
Log.Info($"Executing directory: {AppDomain.CurrentDomain.BaseDirectory}");
Managers.GetManager<PluginManager>().LoadPlugins();
Game = new VRageGame(this, TweakGameSettings, SteamAppName, SteamAppId, Config.InstancePath, RunArgs);
if (!Game.WaitFor(VRageGame.GameState.Stopped, TimeSpan.FromMinutes(5)))
Log.Warn("Failed to wait for game to be initialized");
Managers.GetManager<PluginManager>().LoadPlugins();
Managers.Attach();
_init = true;