private LogLine GetLine(LogReader log) { while (!_stop) { LogLine line; if (log.Lines.Count == 0) { if (log.Equals(PowerReader)) { PowerWait.WaitOne(); } } if (log.Lines.TryDequeue(out line)) { if (!line.Process.Contains("PowerTaskList")) { Utils.IO.LogDebug(line.ToString(), IO.DebugFile.LogDiscarted, false); } else { Utils.IO.LogDebug(line.ToString(), IO.DebugFile.LogReader, false); return(line); } } } return(new LogLine()); }
//PROCESSING SHIT public LogHandler(HSGame game) { PowerReader = new LogReader("Power", this); RachelleReader = new LogReader("Rachelle", this); LoadingScreenReader = new LogReader("LoadingScreen", this); FullscreenReader = new LogReader("FullScreenFX", this); Game = game; }
private LogLine PeekLine(LogReader log) { while (!_stop) { LogLine line; if (log.Lines.TryPeek(out line)) { return(line); } } return(null); }