Beispiel #1
0
        void init()
        {
            lock (syncRoot)
            {
                threadCount = EmulatorsCore.Options.ReadOption(o => o.ImportThreads);
                if (threadCount < 1) //0 threads will take a very long time to complete :)
                    threadCount = 1;

                lookupMatch = new Dictionary<int, RomMatch>();
                pendingMatches = new List<RomMatch>();
                priorityPendingMatches = new List<RomMatch>();
                matchesNeedingInput = new List<RomMatch>();
                approvedMatches = new List<RomMatch>();
                priorityApprovedMatches = new List<RomMatch>();
                commitedMatches = new List<RomMatch>();

                importerThreads = new List<Thread>();
                scraperProvider = new ScraperProvider();
                scraperProvider.DoWork += new DoWorkDelegate(() => doWork);
            }
        }
 public GameImageDownloader(ScraperProvider scraperProvider)
 {
     this.scraperProvider = scraperProvider;
     scraperProvider.DoWork += () => doWork;
 }