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

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

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

--- trunk/EmuXPortal/Api/RomParser.cs	2014/08/04 06:00:46	174
+++ trunk/EmuXPortal/Api/RomParser.cs	2014/08/04 06:31:48	175
@@ -15,9 +15,17 @@
         public RomParser(logger log, IEmuConfig config)
         {
             this.Config = config;
-            List<IRomConfigPair> roms = GetRoms(log);
-            log.WriteLine("Found {0} Roms", roms.Count);
-            this.Roms = GenerateRomConfig(log, roms,config);
+            if (!this.Config.IsFavorites)
+            {
+                List<IRomConfigPair> roms = GetRoms(log);
+                log.WriteLine("Found {0} Roms", roms.Count);
+                this.Roms = GenerateRomConfig(log, roms, config);
+            }
+            else
+            {
+                this.Roms = RomFavorite.GetRoms(log);
+                log.WriteLine("Found {0} Roms", this.Roms.Count);
+            }
         }
         public List<IRomConfig> Roms { get; private set; }
         private List<IRomConfigPair> GetRoms(logger log)

 

  ViewVC Help
Powered by ViewVC 1.1.22