Add config to silence all logs

This commit is contained in:
Nekotekina 2020-02-01 07:14:26 +03:00
parent 943368912b
commit efafda2650
6 changed files with 20 additions and 0 deletions

View file

@ -1657,6 +1657,12 @@ void Emulator::Run()
m_pause_amend_time = 0;
m_state = system_state::running;
if (g_cfg.misc.silence_all_logs)
{
sys_log.notice("Now disabling logging...");
logs::silence();
}
auto on_select = [](u32, cpu_thread& cpu)
{
cpu.state -= cpu_flag::stop;