result screen retire/retry sound ok

This commit is contained in:
CrazyRedMachine 2024-06-06 00:33:57 +02:00
parent 65f9c02f65
commit 03104c4ae9

View File

@ -1407,6 +1407,19 @@ void quickexit_result_loop()
} }
g_return_to_options = true; //transition screen hook will catch it 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("jmp call_real_result\n");
__asm("quit_session:\n"); __asm("quit_session:\n");
@ -1418,6 +1431,7 @@ void quickexit_result_loop()
__asm("mov ebx, %0\n": :"b"(g_transition_addr)); __asm("mov ebx, %0\n": :"b"(g_transition_addr));
__asm("mov dword ptr[ebx], 0xFFFFFFFC\n"); //quit session __asm("mov dword ptr[ebx], 0xFFFFFFFC\n"); //quit session
/* play sound fx (end session) */
__asm("push eax\n"); __asm("push eax\n");
__asm("push ecx\n"); __asm("push ecx\n");
__asm("push edx\n"); __asm("push edx\n");