/[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

--- trunk/EmuXPortal/Api/RomConfig.cs	2014/08/05 04:13:36	237
+++ trunk/EmuXPortal/Api/RomConfig.cs	2014/08/05 04:50:39	238
@@ -4,7 +4,7 @@
 using System.Text;
 using System.Drawing;
 using System.IO;
-using EmuXPortal.Logging;
+using Enterprise.Logging;
 
 namespace EmuXPortal.Api
 {
@@ -22,16 +22,16 @@
     public static class RomLoader
     {
         private const string EMU_CONFIG = "emu.config"; // if this file signifies the emulator configuration
-        public static IRomConfig Load(logger log, string rom_file, IEmuConfig EMUConfig)
+        public static IRomConfig Load(string rom_file, IEmuConfig EMUConfig)
         {
             IRomConfig config = null;
-            config = new RomConfig(log, rom_file, EMUConfig);            
+            config = new RomConfig(rom_file, EMUConfig);            
             return config;
         }
         #region private class RomConfig : IRomConfig
         private class RomConfig : IRomConfig, IDisposable
         {
-            public RomConfig(logger log, string rom_file, IEmuConfig EMUConfig)
+            public RomConfig(string rom_file, IEmuConfig EMUConfig)
             {
                 FileInfo fi = new FileInfo(rom_file);
                 this.RomFile =fi.FullName;
@@ -44,7 +44,7 @@
                 }
                 catch (Exception ex)
                 {
-                    log.WriteLine("Error Loading an Image file for: {1}{0}Error:{0}{2}",System.Environment.NewLine, fi.FullName, ex.ToString());
+                    gLog.Debug.WriteLine("Error Loading an Image file for: {1}{0}Error:{0}{2}", System.Environment.NewLine, fi.FullName, ex.ToString());
                 }
                 try
                 {
@@ -66,7 +66,7 @@
                 }
                 catch (Exception ex)
                 {
-                    log.WriteLine("Error loading rom image: {1}{0}Error:{0}{2}", System.Environment.NewLine, (rom_img == "") ? "DefaultGameImage" : rom_img, ex.ToString());
+                    gLog.Debug.WriteLine("Error loading rom image: {1}{0}Error:{0}{2}", System.Environment.NewLine, (rom_img == "") ? "DefaultGameImage" : rom_img, ex.ToString());
                     this.RomImage = null;
                 }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22