/[EmuXPortal]/trunk/EmuXPortal/Api/RomConfig.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/RomConfig.cs

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

revision 106 by william, Wed Aug 22 02:47:38 2012 UTC revision 107 by william, Thu Aug 23 02:10:16 2012 UTC
# Line 35  namespace EmuXPortal.Api Line 35  namespace EmuXPortal.Api
35                  this.RomTitle = EMUConfig.GameTitle == "" ? fi.Name : EMUConfig.GameTitle;                                  this.RomTitle = EMUConfig.GameTitle == "" ? fi.Name : EMUConfig.GameTitle;                
36                  string rom_img = "";                  string rom_img = "";
37                  // load image                  // load image
38                  if (File.Exists(string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")))) { rom_img = string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")); }                  try
39                    {
40                        if (File.Exists(string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")))) { rom_img = string.Format("{0}.jpg", fi.FullName.Replace(fi.Extension, "")); }
41                    }
42                    catch (Exception ex)
43                    {
44                        logger.WriteLine("Error Loading an Image file for: {1}{0}Error:{0}{2}",System.Environment.NewLine, fi.FullName, ex.ToString());
45                    }
46                  try                  try
47                  {                  {
48                      if (rom_img != string.Empty)                      if (rom_img != string.Empty)

Legend:
Removed from v.106  
changed lines
  Added in v.107

  ViewVC Help
Powered by ViewVC 1.1.22