Only silence logging during gameplay

This commit is contained in:
Megamouse 2023-07-06 22:14:25 +02:00
parent 8d54ddf426
commit 4aec48c2ca
4 changed files with 13 additions and 6 deletions

View file

@ -38,17 +38,17 @@ namespace rpcs3::utils
return thread_count;
}
void configure_logs()
void configure_logs(bool force_enable)
{
static bool was_silenced = false;
const bool silenced = g_cfg.misc.silence_all_logs.get();
const bool silenced = g_cfg.misc.silence_all_logs.get() && !force_enable;
if (silenced)
{
if (!was_silenced)
{
sys_log.success("Disabling logging! Do not create issues on GitHub or on the forums while logging is disabled.");
sys_log.always()("Disabling logging! Do not create issues on GitHub or on the forums while logging is disabled.");
}
logs::silence();