VMManager: Permit setting reload without active VM

This commit is contained in:
Connor McLaughlin 2022-01-27 23:45:32 +10:00 committed by refractionpcsx2
parent 14b54e554e
commit d4721d50f7
1 changed files with 8 additions and 3 deletions

View File

@ -215,7 +215,9 @@ void VMManager::LoadSettings()
PAD::LoadConfig(*si);
InputManager::ReloadSources(*si);
InputManager::ReloadBindings(*si);
ApplyGameFixes();
if (HasValidVM())
ApplyGameFixes();
}
void VMManager::ApplyGameFixes()
@ -1132,9 +1134,12 @@ void VMManager::ApplySettings()
const Pcsx2Config old_config(EmuConfig);
LoadSettings();
CheckForConfigChanges(old_config);
SetEmuThreadAffinities(false);
if (HasValidVM())
{
CheckForConfigChanges(old_config);
SetEmuThreadAffinities(false);
}
}
void VMManager::ReloadGameSettings()