Skip to content

Commit c789ca8

Browse files
committed
hack: avoid xaudio deadlock via ignoring lock
1 parent dc93bbf commit c789ca8

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

MarathonRecomp/app.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ void DisableStartWait()
301301
// printf("DisableStartWait\n");
302302
}
303303

304+
void IgnoreXAudioLockPlsFixAndDeleteThisMidasm(PPCRegister& val)
305+
{
306+
}
307+
304308
PPC_FUNC_IMPL(__imp__sub_82511540);
305309
PPC_FUNC(sub_82511540)
306310
{

MarathonRecompLib/config/Marathon.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ address = 0x82512B04
127127
registers = ["r4", "r31"]
128128
after_instruction = true
129129

130+
[[midasm_hook]]
131+
name = "IgnoreXAudioLockPlsFixAndDeleteThisMidasm"
132+
address = 0x8255AAE8
133+
registers = ["r11"]
134+
jump_address = 0x8255AB24
135+
130136
#[[midasm_hook]]
131137
#name = "DebugZlibMidAsmHook"
132138
#address = 0x826DC30C

0 commit comments

Comments
 (0)