/// <summary> /// Desktops the load. /// </summary> /// <returns>The load.</returns> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> private void Desktop_Load(object sender, EventArgs e) { SaveSystem.IsSandbox = this.IsSandbox; SaveSystem.Begin(); SetupDesktop(); SaveSystem.GameReady += () => { this.Invoke(new Action(() => { LuaInterpreter.RaiseEvent("on_desktop_load", this); })); }; }
public static void InitiateEngine(System.IO.TextWriter writer) { OutOfBoxExperience.Init(new OOBE()); AppearanceManager.Initiate(new WpfWindowManager()); Infobox.Init(new WpfInfoboxFrontend()); FileSkimmerBackend.Init(new Applications.WpfFSFrontend()); if (writer != null) { Console.SetOut(writer); } SaveSystem.Begin(false); AppearanceManager.OnExit += () => { Environment.Exit(0); }; }
private void Desktop_Load(object sender, EventArgs e) { SaveSystem.Begin(); SetupDesktop(); }