From 8d5dc9f61a07bc2a2a7ea4ba0811439859469ef3 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 15 Sep 2026 22:06:48 +0200 Subject: [PATCH] fix(cart): keep Action Replay chipmem hooks installed check_prefs_changed_custom() unconditionally restored the plain chipmem put handlers, wiping the chipmem_*put_actionreplay23 hooks that action_replay_setbanks() installs. Without them the cart never advanced past ACTION_REPLAY_WAITRESET, so the freeze button did nothing for Action Replay 1/2/3 while HRTMon (no chipmem hooks) kept working. The restore is a leftover from the 2021 fast-copper work: it originally swapped the _fc handler variants in and out; a later cleanup removed the variants but kept the reset. Full amiberry has no equivalent block. Fixes #3 --- src/custom.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/custom.cpp b/src/custom.cpp index f04d1a88f..f6b1cf4de 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -10870,10 +10870,6 @@ void check_prefs_changed_custom(void) chipmem_bank.jit_write_flag = S_WRITE; else chipmem_bank.jit_write_flag = 0; - - chipmem_bank.lput = chipmem_lput; - chipmem_bank.wput = chipmem_wput; - chipmem_bank.bput = chipmem_bput; #endif if (!currprefs.keyboard_connected && changed_prefs.keyboard_connected) {