From 77edb2169be52b726c4b20f841e706cf101e73d0 Mon Sep 17 00:00:00 2001 From: Waccoon <105848526+Waccoon@users.noreply.github.com> Date: Tue, 24 May 2022 04:18:11 -0400 Subject: [PATCH] Update newcpu.cpp Forces CPU settings from workprefs to be copied to currprefs on CPU hard reset. Normally all settings copy over when clicking the "OK" button in the GUI, but clicking "Reset" instead will cause CPU speed/frequency changes to be lost. --- newcpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newcpu.cpp b/newcpu.cpp index 89acfc0c..d1d6c5d1 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -3472,6 +3472,9 @@ static void m68k_reset2(bool hardreset) uae_interrupt = 0; } + // Force config changes (CPU speed) into effect on hard reset + update_68k_cycles(); + #ifdef SAVESTATE if (isrestore ()) { m68k_reset_sr(); -- 2.47.3