/[EmuXPortal]/trunk/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2012/10/04 22:07:59	138
+++ trunk/EmuXPortal/Form1.cs	2013/10/08 18:39:46	160
@@ -282,6 +282,13 @@
                 p.StartInfo.FileName = config.Config.GameExe == "" ? config.Config.EmuPath : config.Config.GameExe;
                 p.StartInfo.Arguments = config.Config.GameExeArgs == "" ? EmuConfigLoader.GetEMUOptions(log, config) : config.Config.GameExeArgs;
                 p.Start();
+
+                // minimize EmuXPortal
+                this.WindowState = FormWindowState.Minimized;
+                // wait for exit of game
+                p.WaitForExit();
+                // maximize EmuXPortal
+                this.WindowState = FormWindowState.Maximized;
             }
             if (e.KeyCode == Keys.Back)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22