public void RetrieveThread(Game g) { string args = string.Format(_arguments, g.FullIsoPath); if (File.Exists(g.FullIsoPath)) { _processor.Start(_path, args); while ((!Abort) && (!_processor.Ended())) { Thread.Sleep(100); } if (Abort) { _processor.Kill(); } else { g.Abgx = _processor.Status; if (OnGameScanned != null) { OnGameScanned(g, _cnt); } } } }
internal override void RetrieveThread(Game g) { string args = string.Format(Properties.Settings.Default.AbgxArguments, g.FullIsoPath); if (File.Exists(g.FullIsoPath)) { AbgxProcessor processor = new AbgxProcessor(g); processor.OnAbgx += _processor_OnAbgx; processor.OnFinish += _processor_OnFinish; processor.Start(Program.Abgx, args); while ((!Abort) && (!processor.Ended())) { Thread.Sleep(100); } if (Abort) { processor.Kill(); } } }