Fix savestate bug

This commit is contained in:
theoddone33
2002-07-11 06:28:18 +00:00
parent f5c58c4940
commit 4278e18f04

View File

@@ -2126,7 +2126,6 @@ BRRDecode:
ret ret
.dlpf .dlpf
ProcessDynamicLowPass ProcessDynamicLowPass
section .data ;ALIGN=32 section .data ;ALIGN=32
@@ -4823,13 +4822,16 @@ SECTION .text
add edi,[spcBuffera] add edi,[spcBuffera]
mov eax,[Voice0Prev0+%1*4] mov eax,[Voice0Prev0+%1*4]
mov [Voice0BufPtr+%1*4],edi mov [Voice0BufPtr+%1*4],edi
push edi ; DDOI - this will avoid the crash bug hopefully
mov dword [prev0],eax mov dword [prev0],eax
mov eax,[Voice0Prev1+%1*4] mov eax,[Voice0Prev1+%1*4]
mov dword [prev1],eax mov dword [prev1],eax
mov ecx,%1 mov ecx,%1
call BRRDecode call BRRDecode
pop edi
pop esi pop esi
mov edi,[Voice0BufPtr+%1*4] ;mov edi,[Voice0BufPtr+%1*4]
;STUB_ASM_INT edi
movsx eax,word [edi] movsx eax,word [edi]
mov [PSampleBuf+5*4+%1*26*4],eax mov [PSampleBuf+5*4+%1*26*4],eax