9 |
|
|
10 |
namespace EmuXPortal.Api |
namespace EmuXPortal.Api |
11 |
{ |
{ |
12 |
public interface IEmuConfig : IComparable<IEmuConfig> |
public interface IEmuConfig : IComparable<IEmuConfig>, IDisposable |
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<IEmuConfig> |
private class EmuConfig : IEmuConfig, IComparable<IEmuConfig>, IDisposable |
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) |
339 |
this.Create(EmuRomPath); |
this.Create(EmuRomPath); |
340 |
} |
} |
341 |
#endregion |
#endregion |
342 |
|
|
343 |
|
public void Dispose() |
344 |
|
{ |
345 |
|
if (this.PlatformImage != null) |
346 |
|
this.PlatformImage.Dispose(); |
347 |
|
} |
348 |
} |
} |
349 |
#endregion |
#endregion |
350 |
|
|