diff --git a/pcsx2/gui/ConsoleLogger.cpp b/pcsx2/gui/ConsoleLogger.cpp index 0d2a80ccca..c601d8e6af 100644 --- a/pcsx2/gui/ConsoleLogger.cpp +++ b/pcsx2/gui/ConsoleLogger.cpp @@ -511,7 +511,8 @@ void ConsoleLogFrame::OnEnableAllLogging(wxCommandEvent& evt) log->Enabled = true; } DevConWriterEnabled = true; - g_Conf->EmuOptions.CdvdVerboseReads = true; + // Safe to change - it's read only in the core thread and only affects log output. + const_cast(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = true; OnLoggingChanged(); evt.Skip(); @@ -526,7 +527,8 @@ void ConsoleLogFrame::OnDisableAllLogging(wxCommandEvent& evt) log->Enabled = false; } DevConWriterEnabled = false; - g_Conf->EmuOptions.CdvdVerboseReads = false; + // Safe to change - it's read only in the core thread and only affects log output. + const_cast(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = false; OnLoggingChanged(); evt.Skip(); @@ -541,7 +543,8 @@ void ConsoleLogFrame::OnSetDefaultLogging(wxCommandEvent& evt) log->Enabled = ConLogDefaults[i]; } DevConWriterEnabled = false; - g_Conf->EmuOptions.CdvdVerboseReads = false; + // Safe to change - it's read only in the core thread and only affects log output. + const_cast(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = false; OnLoggingChanged(); evt.Skip();