Skip to content

Commit 21ac8d9

Browse files
committed
Handle VoiceLanguage for WMV cutscenes
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent ec1bef5 commit 21ac8d9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

MarathonRecomp/patches/misc_patches.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,10 @@ bool DisableHints()
102102
{
103103
return !Config::Hints;
104104
}
105+
106+
void XmvPlayerLang(PPCRegister& r11) {
107+
r11.u32 = 1;
108+
109+
if (Config::VoiceLanguage == EVoiceLanguage::Japanese)
110+
r11.u32++;
111+
}

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,8 @@ registers = ["f13"]
219219
name = "PowerUpJingleDurationFix"
220220
address = 0x8216CC28
221221
registers = ["f31"]
222+
223+
[[midasm_hook]]
224+
name = "XmvPlayerLang"
225+
address = 0x8264D844
226+
registers = ["r11"]

0 commit comments

Comments
 (0)