/[EmuXPortal]/branches/mono/EmuXPortal/Api/RomConfig.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Api/RomConfig.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branches/mono/EmuXPortal/Api/RomConfig.cs	2016/04/28 03:00:55	282
+++ branches/mono/EmuXPortal/Api/RomConfig.cs	2016/08/17 01:24:40	283
@@ -40,7 +40,9 @@
                 // load image
                 try
                 {
-                    if (File.Exists(string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")))) { rom_img = string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")); }
+					// DefaultGameImage
+					string raw_image_path = string.Format("{0}.jpg", fi.Extension != "" ? fi.FullName.Replace(fi.Extension, "") : fi.FullName);
+					if (File.Exists(raw_image_path)) { rom_img = string.Format(raw_image_path); }                   
                 }
                 catch (Exception ex)
                 {

 

  ViewVC Help
Powered by ViewVC 1.1.22