public void Log(string s, LogLevel level) { if ((int)Program.LogLevel >= (int)level) { LogBuffer.Add(s); if (LogBuffer.Count > Chip8Emu.DisplayRows) { LogBuffer.RemoveAt(0); } } }