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

revision 112 by william, Thu Aug 23 04:13:19 2012 UTC revision 175 by william, Mon Aug 4 06:31:48 2014 UTC
# Line 15  namespace EmuXPortal.Api Line 15  namespace EmuXPortal.Api
15          public RomParser(logger log, IEmuConfig config)          public RomParser(logger log, IEmuConfig config)
16          {          {
17              this.Config = config;              this.Config = config;
18              List<IRomConfigPair> roms = GetRoms(log);              if (!this.Config.IsFavorites)
19              log.WriteLine("Found {0} Roms", roms.Count);              {
20              this.Roms = GenerateRomConfig(log, roms,config);                  List<IRomConfigPair> roms = GetRoms(log);
21                    log.WriteLine("Found {0} Roms", roms.Count);
22                    this.Roms = GenerateRomConfig(log, roms, config);
23                }
24                else
25                {
26                    this.Roms = RomFavorite.GetRoms(log);
27                    log.WriteLine("Found {0} Roms", this.Roms.Count);
28                }
29          }          }
30          public List<IRomConfig> Roms { get; private set; }          public List<IRomConfig> Roms { get; private set; }
31          private List<IRomConfigPair> GetRoms(logger log)          private List<IRomConfigPair> GetRoms(logger log)

Legend:
Removed from v.112  
changed lines
  Added in v.175

  ViewVC Help
Powered by ViewVC 1.1.22