| 385 | } |
| 386 | |
| 387 | void FullscreenUI::CheckForConfigChanges(const Pcsx2Config& old_config) |
| 388 | { |
| 389 | if (!IsInitialized()) |
| 390 | return; |
| 391 | |
| 392 | ImGuiFullscreen::SetTheme(Host::GetBaseStringSettingValue("UI", "FullscreenUITheme", "Dark")); |
| 393 | |
| 394 | MTGS::RunOnGSThread([]() { |
| 395 | LoadCustomBackground(); |
| 396 | }); |
| 397 | |
| 398 | // If achievements got disabled, we might have the menu open... |
| 399 | // That means we're going to be reaching achievement state. |
| 400 | if (old_config.Achievements.Enabled && !EmuConfig.Achievements.Enabled) |
| 401 | { |
| 402 | // So, wait just in case. |
| 403 | MTGS::RunOnGSThread([]() { |
| 404 | if (s_current_main_window == MainWindowType::Achievements || s_current_main_window == MainWindowType::Leaderboards) |
| 405 | { |
| 406 | ReturnToPreviousWindow(); |
| 407 | } |
| 408 | }); |
| 409 | MTGS::WaitGS(false, false, false); |
| 410 | } |
| 411 | |
| 412 | if (old_config.FullpathToBios() != EmuConfig.FullpathToBios()) |
| 413 | { |
| 414 | MTGS::RunOnGSThread([]() { |
| 415 | ApplyLayoutSettings(); |
| 416 | }); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | void FullscreenUI::OnVMStarted() |
| 421 | { |
nothing calls this directly
no test coverage detected