Skip to content

Commit a03d4f6

Browse files
committed
logs: Fix global log levels during boot and after changing log level settings
1 parent 99bb042 commit a03d4f6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

rpcs3/main_application.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,22 @@ void main_application::InitializeEmulator(const std::string& user, bool show_gui
7070
const std::string firmware_version = utils::get_firmware_version();
7171
const std::string firmware_string = firmware_version.empty() ? "Missing Firmware" : ("Firmware version: " + firmware_version);
7272
sys_log.always()("%s", firmware_string);
73+
74+
rpcs3::utils::configure_logs(Emu.IsStopped());
7375
}
7476

7577
void main_application::OnEmuSettingsChange()
7678
{
79+
// Change logging
80+
rpcs3::utils::configure_logs(Emu.IsStopped());
81+
7782
if (Emu.IsRunning())
7883
{
7984
enable_display_sleep(!g_cfg.misc.prevent_display_sleep);
8085
}
8186

8287
if (!Emu.IsStopped())
8388
{
84-
// Change logging (only allowed during gameplay)
85-
rpcs3::utils::configure_logs();
86-
8789
// Force audio provider
8890
g_cfg.audio.provider.set(Emu.IsVsh() ? audio_provider::rsxaudio : audio_provider::cell_audio);
8991
}

0 commit comments

Comments
 (0)