diff options
Diffstat (limited to 'Manager/RomManager.cs')
-rw-r--r-- | Manager/RomManager.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Manager/RomManager.cs b/Manager/RomManager.cs index 24eb2f67..00ab1904 100644 --- a/Manager/RomManager.cs +++ b/Manager/RomManager.cs @@ -83,6 +83,25 @@ namespace com.clusterrr.hakchi_gui.Manager }
return ret;
}
+ public Rom GetRomByFileName(string fileName)
+ {
+ Rom ret = null;
+
+ foreach (Rom r in _RomLibrary)
+ {
+ if (fileName.ToLower() == System.IO.Path.GetFileName(r.LocalPath.ToLower()))
+ {
+ ret = r;
+ break;
+ }
+ }
+ /* if(ret == null)
+ {
+ ret = AddRom(filePath);
+ }
+ */
+ return ret;
+ }
public Rom GetRom(string filePath)
{
Rom ret = null;
|