From d29ab778923febe6aef1479dce7a6d4bcc0c42ac Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Mon, 29 Jul 2024 21:57:26 -0400 Subject: [PATCH] g/j1: fix menu labelling issue in jak1 (#3613) Fixes #3393 --- goal_src/jak1/pc/progress-pc.gc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/goal_src/jak1/pc/progress-pc.gc b/goal_src/jak1/pc/progress-pc.gc index 2dd719fdb2..f65df43562 100644 --- a/goal_src/jak1/pc/progress-pc.gc +++ b/goal_src/jak1/pc/progress-pc.gc @@ -1279,7 +1279,7 @@ (set! (-> option bind-info input-idx) i) (set! (-> option bind-info analog-min-range?) #t) (set! (-> option option-type) (game-option-type binding-assignment)) - (set! (-> option name-override) (-> *analog-bind-names* (* i 2))) + (set! (-> option name-override) (copy-string<-string (-> option name-override) (-> *analog-bind-names* (* i 2)))) (set! (-> option scale) #t) (1+! (-> *temp-options* length))) (let ((option (-> *temp-options* (length *temp-options*)))) @@ -1290,7 +1290,7 @@ (set! (-> option bind-info input-idx) i) (set! (-> option bind-info analog-min-range?) #f) (set! (-> option option-type) (game-option-type binding-assignment)) - (set! (-> option name-override) (-> *analog-bind-names* (+ 1 (* i 2)))) + (set! (-> option name-override) (copy-string<-string (-> option name-override) (-> *analog-bind-names* (+ 1 (* i 2))))) (set! (-> option scale) #t) (1+! (-> *temp-options* length))))) ;; Add Button bindings @@ -1305,7 +1305,7 @@ (set! (-> option bind-info input-idx) i) (set! (-> option bind-info analog-min-range?) #f) (set! (-> option option-type) (game-option-type binding-assignment)) - (set! (-> option name-override) (-> *button-bind-names* i)) + (set! (-> option name-override) (copy-string<-string (-> option name-override) (-> *button-bind-names* i))) (set! (-> option scale) #t) (1+! (-> *temp-options* length)))) ;; We add a restore defaults button at the bottom of each binding menu