Пример #1
0
        public static void ScanFiles(object sender, DoWorkEventArgs e)
        {
            deep = false;
            _bgw = sender as BackgroundWorker;

            for (int i = 0; i < 256; i++)
            {
                ScanRomRoot(RomRootDir.GetRootDir((byte)i));
            }

            DatUpdate.UpdateGotTotal();
            _bgw.ReportProgress(0, new bgwText("Scanning Files Complete"));
            _bgw = null;
        }
Пример #2
0
        public static void ScanFiles(object sender, DoWorkEventArgs e)
        {
            string sInMemorySize = Settings.ScanInMemorySize;

            if (!ulong.TryParse(sInMemorySize, out _inMemorySize))
            {
                _inMemorySize = 1000000;
            }

            _tmpDir = Settings.ScanInDir ?? "tmp";
            if (!Directory.Exists(_tmpDir))
            {
                Directory.CreateDirectory(_tmpDir);
            }

            _bgw = sender as BackgroundWorker;

            ScanADirNew(RootDir);

            DatUpdate.UpdateGotTotal();
            _bgw?.ReportProgress(0, new bgwText("Scanning Files Complete"));
            _bgw = null;
        }