Skip to content

Commit

Permalink
fix soundbank loading on black label (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManDude authored Jun 24, 2022
1 parent 6b6c937 commit fb3f9ff
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions goal_src/engine/game/settings.gc
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,19 @@
;; send language change to the IOP.
(when (!= (-> gp-0 language) (-> s5-1 language))
;; NOTE : pc port added this
(cond
((= (language-enum japanese) (-> s5-1 language)) ;; old lang wasnt japanese
(sound-bank-unload (static-sound-name "common"))
(sound-bank-load (static-sound-name "commonj"))
)
((= (language-enum japanese) (-> gp-0 language)) ;; old lang was japanese
(sound-bank-unload (static-sound-name "commonj"))
(sound-bank-load (static-sound-name "common"))
)
(#when PC_PORT
(cond
((not *jak1-full-game*)
)
((= (language-enum japanese) (-> s5-1 language)) ;; old lang wasnt japanese
(sound-bank-unload (static-sound-name "common"))
(sound-bank-load (static-sound-name "commonj"))
)
((= (language-enum japanese) (-> gp-0 language)) ;; old lang was japanese
(sound-bank-unload (static-sound-name "commonj"))
(sound-bank-load (static-sound-name "common"))
)
)
)
(set! (-> gp-0 language) (-> s5-1 language))
(set-language (-> gp-0 language))
Expand Down

0 comments on commit fb3f9ff

Please sign in to comment.