/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

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

--- trunk/EmuXPortal/Form1.cs	2012/04/04 01:55:32	19
+++ trunk/EmuXPortal/Form1.cs	2012/04/04 03:09:19	23
@@ -8,6 +8,7 @@
 using System.Windows.Forms;
 using EmuXPortal.Api;
 using EmuXPortal.Logging;
+using System.Diagnostics;
 
 namespace EmuXPortal
 {
@@ -135,11 +136,12 @@
 
             if (e.KeyCode == Keys.Enter)
             {
-                //// load this platform
-                //platform_flow.Visible = false;
-                //CurrentSelectedRom = c.Tag as IEmuConfig;
-                //rom_flow.Visible = true;
-                //rom_flow.BringToFront();
+                IRomConfig config = c.Tag as IRomConfig;
+
+                Process p = new Process();
+                p.StartInfo.FileName = config.Config.EmuPath;
+                p.StartInfo.Arguments = EmuConfigLoader.GetEMUOptions(config);
+                p.Start();
             }
             if (e.KeyCode == Keys.Back)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22