/[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/08/22 01:44:13	103
+++ trunk/EmuXPortal/Api/EmuConfig.cs	2012/08/22 02:12:46	104
@@ -9,7 +9,7 @@
 
 namespace EmuXPortal.Api
 {
-    public interface IEmuConfig : IComparable
+    public interface IEmuConfig : IComparable<IEmuConfig>
     {
         string ConfigPath { get; }
         string PlatformNameShort { get; }
@@ -78,7 +78,7 @@
         #endregion
 
         #region private class EmuConfig : IEmuConfig
-        private class EmuConfig : IEmuConfig, IComparable
+        private class EmuConfig : IEmuConfig, IComparable<IEmuConfig>
         {
             public IEmuConfig Create(string rom_path) { return this.Create(string.Empty, rom_path); }
             public IEmuConfig Create(string config_path, string rom_path)
@@ -329,9 +329,9 @@
             }
             #region IComparable Members
 
-            public int CompareTo(object obj)
+            public int CompareTo(IEmuConfig obj)
             {
-                return this.PlatformNameLong.CompareTo((obj as EmuConfig).PlatformNameLong);
+                return this.PlatformNameLong.CompareTo(obj.PlatformNameLong);
             }
             public void RefreshConfig()
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22