System: Preserve controller type on core settings reset

This commit is contained in:
Connor McLaughlin
2022-10-21 00:29:42 +10:00
parent 8e95248ef3
commit b6686b8239
2 changed files with 5 additions and 4 deletions

View File

@ -800,6 +800,10 @@ void System::SetDefaultSettings(SettingsInterface& si)
temp.display_show_cpu = g_settings.display_show_cpu;
temp.display_show_gpu = g_settings.display_show_gpu;
// keep controller, we reset it elsewhere
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
temp.controller_types[i] = g_settings.controller_types[i];
temp.Save(si);
}