9 |
|
|
10 |
namespace EmuXPortal.Api |
namespace EmuXPortal.Api |
11 |
{ |
{ |
12 |
public interface IEmuConfig : IComparable |
public interface IEmuConfig : IComparable<IEmuConfig> |
13 |
{ |
{ |
14 |
string ConfigPath { get; } |
string ConfigPath { get; } |
15 |
string PlatformNameShort { get; } |
string PlatformNameShort { get; } |
78 |
#endregion |
#endregion |
79 |
|
|
80 |
#region private class EmuConfig : IEmuConfig |
#region private class EmuConfig : IEmuConfig |
81 |
private class EmuConfig : IEmuConfig, IComparable |
private class EmuConfig : IEmuConfig, IComparable<IEmuConfig> |
82 |
{ |
{ |
83 |
public IEmuConfig Create(string rom_path) { return this.Create(string.Empty, rom_path); } |
public IEmuConfig Create(string rom_path) { return this.Create(string.Empty, rom_path); } |
84 |
public IEmuConfig Create(string config_path, string rom_path) |
public IEmuConfig Create(string config_path, string rom_path) |
329 |
} |
} |
330 |
#region IComparable Members |
#region IComparable Members |
331 |
|
|
332 |
public int CompareTo(object obj) |
public int CompareTo(IEmuConfig obj) |
333 |
{ |
{ |
334 |
return this.PlatformNameLong.CompareTo((obj as EmuConfig).PlatformNameLong); |
return this.PlatformNameLong.CompareTo(obj.PlatformNameLong); |
335 |
} |
} |
336 |
public void RefreshConfig() |
public void RefreshConfig() |
337 |
{ |
{ |