void _processor_OnAbgx(string line, int percent, int max) { if (Abort) { _processor.Kill(); } if (OnStatusUpdate != null) { OnStatusUpdate(string.Format("Verifying {0} {1}/{2}...", CurrentGame, _cnt, _gamecnt), line, _cnt - 1, _gamecnt, percent, max); } }
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(); } } }