/[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 04:27:01	30
+++ trunk/EmuXPortal/Api/EmuConfig.cs	2012/04/04 05:12:58	31
@@ -9,7 +9,7 @@
 
 namespace EmuXPortal.Api
 {
-    public interface IEmuConfig
+    public interface IEmuConfig : IComparable
     {
         string PlatformNameShort { get; }
         string PlatformNameLong { get; }
@@ -91,6 +91,7 @@
                 }
             }
             else { logger.WriteLine("Could not find EMU Config File: {0}", config_path); }
+            
             return config;
         }
         #endregion
@@ -127,7 +128,7 @@
         #endregion
 
         #region private class EmuConfig : IEmuConfig
-        private class EmuConfig : IEmuConfig
+        private class EmuConfig : IEmuConfig, IComparable
         {
             private const string Unknown_Platform = "Unknown Platform";
             public EmuConfig() : this("") { }
@@ -188,6 +189,15 @@
             public string EmuOptions { get; set; }
             public string EmuRomPath { get; set; }
             #endregion      
+        
+            #region IComparable Members
+
+            public int CompareTo(object obj)
+            {
+                return this.PlatformNameLong.CompareTo((obj as EmuConfig).PlatformNameLong);
+            }
+
+            #endregion
         }
         #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22