NoGUI: Set default settings if missing

This commit is contained in:
Connor McLaughlin
2021-02-02 01:46:16 +10:00
parent c54842830f
commit 1e8752759d
3 changed files with 14 additions and 5 deletions

View File

@ -742,6 +742,12 @@ void QtHostInterface::SetDefaultSettings(SettingsInterface& si)
{
CommonHostInterface::SetDefaultSettings(si);
si.SetStringValue("Hotkeys", "PowerOff", "Keyboard/Escape");
si.SetStringValue("Hotkeys", "LoadSelectedSaveState", "Keyboard/F1");
si.SetStringValue("Hotkeys", "SaveSelectedSaveState", "Keyboard/F2");
si.SetStringValue("Hotkeys", "SelectPreviousSaveStateSlot", "Keyboard/F3");
si.SetStringValue("Hotkeys", "SelectNextSaveStateSlot", "Keyboard/F4");
si.SetBoolValue("Main", "RenderToMainWindow", true);
}