Hotkey: Add Reload Patch hotkey

This commit is contained in:
KamFretoZ
2026-03-11 16:15:30 +01:00
committed by lightningterror
parent f5524bab1b
commit cd9fe1630b
+10
View File
@@ -240,6 +240,16 @@ DEFINE_HOTKEY("ResetVM", TRANSLATE_NOOP("Hotkeys", "System"), TRANSLATE_NOOP("Ho
if (!pressed && VMManager::HasValidVM())
VMManager::Reset();
})
DEFINE_HOTKEY("ReloadPatches", TRANSLATE_NOOP("Hotkeys", "System"), TRANSLATE_NOOP("Hotkeys", "Reload Patches"),
[](s32 pressed) {
if (!pressed && VMManager::HasValidVM())
{
Host::RunOnCPUThread([]() {
Host::AddKeyedOSDMessage("ReloadPatchHotkey", "Reloading Patches...");
VMManager::ReloadPatches(true, false, true, true);
});
}
})
DEFINE_HOTKEY("SwapMemCards", TRANSLATE_NOOP("Hotkeys", "System"),
TRANSLATE_NOOP("Hotkeys", "Swap Memory Cards"), [](s32 pressed) {
if (!pressed && VMManager::HasValidVM())