/[EmuXPortal]/trunk/EmuXPortal/Api/EmuConfig.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/EmuConfig.cs

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

--- trunk/EmuXPortal/Api/EmuConfig.cs	2012/04/04 03:09:19	23
+++ trunk/EmuXPortal/Api/EmuConfig.cs	2012/04/04 03:10:52	24
@@ -104,6 +104,10 @@
         #region private class EMUOptions
         private class EMUOptions
         {
+            #region Replaceable Constant Options
+            private const string ROM_FILE = "%ROM_FILE%";
+            private const string ROM_PATH = "%ROM_PATH%";
+            #endregion
             private Dictionary<string, string> options_dict = new Dictionary<string, string>();
             public EMUOptions(IRomConfig config)
             {
@@ -115,10 +119,9 @@
             }
             private void init_dict(IRomConfig config)
             {
-                options_dict.Add("%ROM_FILE%", config.RomFile);
-                options_dict.Add("%ROM_PATH%", config.Config.EmuRomPath);
+                options_dict.Add(ROM_FILE, config.RomFile);
+                options_dict.Add(ROM_PATH, config.Config.EmuRomPath);
             }
-            public const string ROM_FILE = "%ROM_FILE%";
             public string Options { get; set; }
         }
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22