MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / CheckForConfigChanges

Method CheckForConfigChanges

pcsx2/ImGui/FullscreenUI.cpp:387–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void 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
420void FullscreenUI::OnVMStarted()
421{

Callers

nothing calls this directly

Calls 1

FullpathToBiosMethod · 0.80

Tested by

no test coverage detected