From 03104c4ae9c9f63fa162bdff686f8154e22e5cb8 Mon Sep 17 00:00:00 2001 From: CrazyRedMachine Date: Thu, 6 Jun 2024 00:33:57 +0200 Subject: [PATCH] result screen retire/retry sound ok --- popnhax/dllmain.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/popnhax/dllmain.cc b/popnhax/dllmain.cc index d3af498..de00223 100644 --- a/popnhax/dllmain.cc +++ b/popnhax/dllmain.cc @@ -1407,6 +1407,19 @@ void quickexit_result_loop() } g_return_to_options = true; //transition screen hook will catch it + + /* play sound fx (retry song) */ + __asm("push eax\n"); + __asm("push ecx\n"); + __asm("push edx\n"); + __asm("mov eax, 0x1F\n"); //"exit menu" sound fx + __asm("push 0\n"); + __asm("call %0\n"::"D"(playsramsound_func)); + __asm("add esp, 4\n"); + __asm("pop edx\n"); + __asm("pop ecx\n"); + __asm("pop eax\n"); + __asm("jmp call_real_result\n"); __asm("quit_session:\n"); @@ -1418,6 +1431,7 @@ void quickexit_result_loop() __asm("mov ebx, %0\n": :"b"(g_transition_addr)); __asm("mov dword ptr[ebx], 0xFFFFFFFC\n"); //quit session + /* play sound fx (end session) */ __asm("push eax\n"); __asm("push ecx\n"); __asm("push edx\n");