static void Main() { string gamePath; if (!Helper.GetGamePath(out gamePath)) { return; } Core.Log(LogSeverity.Minor, "Loading plugins.."); Core.Plugins.LoadAll("Plugins/"); Core.Plugins.CreateInterfaces(); Core.Plugins.Initialize(LaunchStage.Startup); Core.Log(LogSeverity.Minor, "Preparing EVE launch.."); BlueOS.Initialize(gamePath); // blue module is now in memory but still dormant Core.Plugins.Initialize(LaunchStage.PreBlue); if (!BlueOS.Startup()) { Core.Log(LogSeverity.Fatal, "Failed to launch EVE (BlueOS::Startup failed)"); } // at this point, blue has initialized the python environment, so init our wrapper Python.Initialize(); Core.Plugins.Initialize(LaunchStage.PostBlue); var console = new ConsoleModule(); Core.Log(LogSeverity.Minor, "Leaving main thread, switching to command processor"); var thread = new Thread(CommandProcessor); thread.Start(); // run BeOS and the game - blocking! BlueOS.Run(); Thread.Sleep(Timeout.Infinite); }
static void Main() { string gamePath; if (!Helper.GetGamePath(out gamePath)) return; Core.Log(LogSeverity.Minor, "Loading plugins.."); Core.Plugins.LoadAll("Plugins/"); Core.Plugins.CreateInterfaces(); Core.Plugins.Initialize(LaunchStage.Startup); Core.Log(LogSeverity.Minor, "Preparing EVE launch.."); BlueOS.Initialize(gamePath); // blue module is now in memory but still dormant Core.Plugins.Initialize(LaunchStage.PreBlue); if (!BlueOS.Startup()) Core.Log(LogSeverity.Fatal, "Failed to launch EVE (BlueOS::Startup failed)"); // at this point, blue has initialized the python environment, so init our wrapper Python.Initialize(); Core.Plugins.Initialize(LaunchStage.PostBlue); var console = new ConsoleModule(); Core.Log(LogSeverity.Minor, "Leaving main thread, switching to command processor"); var thread = new Thread(CommandProcessor); thread.Start(); // run BeOS and the game - blocking! BlueOS.Run(); Thread.Sleep(Timeout.Infinite); }