From ba0880d7730f646af4c5899cd0b9afa72b2909e4 Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Tue, 10 Nov 2020 21:30:25 +0800 Subject: [PATCH] Fix BootPicker show-stopper We were trashing our return registers at the last moment. --- BootPicker.a | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BootPicker.a b/BootPicker.a index d69f338..f221f49 100644 --- a/BootPicker.a +++ b/BootPicker.a @@ -222,10 +222,14 @@ _BoundaryLabelAtStartOfBootPicker_ ; The selected procedure will jump to here after setting A6,A0,D0 .ReturnToCaller + movem.l A0/D0,-(SP) ; save/restore our return values + move.w #$A8AD,D0 ; Unpatch _PtInRect move.l $9CE+4,A0 ; We saved it in ToolScratch dc.w $A047 ; _SetTrapAddress + movem.l (SP)+,A0/D0 + unlk A6 ; See the saving code for details move.l (SP)+,$2BA move.l (SP)+,$9CE+4