9 |
|
|
10 |
namespace EmuXPortal.Api |
namespace EmuXPortal.Api |
11 |
{ |
{ |
12 |
public interface IEmuConfig |
public interface IEmuConfig : IComparable |
13 |
{ |
{ |
14 |
string PlatformNameShort { get; } |
string PlatformNameShort { get; } |
15 |
string PlatformNameLong { get; } |
string PlatformNameLong { get; } |
91 |
} |
} |
92 |
} |
} |
93 |
else { logger.WriteLine("Could not find EMU Config File: {0}", config_path); } |
else { logger.WriteLine("Could not find EMU Config File: {0}", config_path); } |
94 |
|
|
95 |
return config; |
return config; |
96 |
} |
} |
97 |
#endregion |
#endregion |
128 |
#endregion |
#endregion |
129 |
|
|
130 |
#region private class EmuConfig : IEmuConfig |
#region private class EmuConfig : IEmuConfig |
131 |
private class EmuConfig : IEmuConfig |
private class EmuConfig : IEmuConfig, IComparable |
132 |
{ |
{ |
133 |
private const string Unknown_Platform = "Unknown Platform"; |
private const string Unknown_Platform = "Unknown Platform"; |
134 |
public EmuConfig() : this("") { } |
public EmuConfig() : this("") { } |
189 |
public string EmuOptions { get; set; } |
public string EmuOptions { get; set; } |
190 |
public string EmuRomPath { get; set; } |
public string EmuRomPath { get; set; } |
191 |
#endregion |
#endregion |
192 |
|
|
193 |
|
#region IComparable Members |
194 |
|
|
195 |
|
public int CompareTo(object obj) |
196 |
|
{ |
197 |
|
return this.PlatformNameLong.CompareTo((obj as EmuConfig).PlatformNameLong); |
198 |
|
} |
199 |
|
|
200 |
|
#endregion |
201 |
} |
} |
202 |
#endregion |
#endregion |
203 |
|
|