Silly DSP code removed, should fix a lot of games (including EWJ2) [pagefault]. Removed now useless EWJ2 hacks.
This commit is contained in:
@@ -1154,19 +1154,11 @@ section .data
|
|||||||
.fname2 db 9,'vram2.dat',0
|
.fname2 db 9,'vram2.dat',0
|
||||||
section .text
|
section .text
|
||||||
|
|
||||||
section .data
|
|
||||||
NEWSYM ewj2hack, dd 0
|
|
||||||
section .text
|
|
||||||
|
|
||||||
NEWSYM hdmatype2indirect
|
NEWSYM hdmatype2indirect
|
||||||
cmp dword[ewj2hack],1
|
|
||||||
jne near .notend
|
|
||||||
cmp byte[esi+1],40h ; Writing to spc
|
cmp byte[esi+1],40h ; Writing to spc
|
||||||
jne near .notend
|
jne near .notend
|
||||||
cmp byte[esi+10],0DAh ; first transfer
|
cmp byte[esi+10],0DAh ; first transfer
|
||||||
jne near .notend
|
jne near .notend
|
||||||
; EWJ2 HACK
|
|
||||||
; int 3h
|
|
||||||
push eax
|
push eax
|
||||||
push ebx
|
push ebx
|
||||||
push ecx
|
push ecx
|
||||||
|
|||||||
@@ -4519,25 +4519,11 @@ NEWSYM EchoStereo
|
|||||||
mov dword[Voice0IncNumber+%1*4],0
|
mov dword[Voice0IncNumber+%1*4],0
|
||||||
mov byte[Voice0Status+%1],0
|
mov byte[Voice0Status+%1],0
|
||||||
mov byte[Voice0State+%1],0
|
mov byte[Voice0State+%1],0
|
||||||
; cmp byte[ENVDisable],1
|
|
||||||
; je %%noSkipStuff
|
|
||||||
;%%noSkipStuff
|
|
||||||
mov byte[DSPMem+08h+%1*10h],0
|
|
||||||
mov byte[DSPMem+09h+%1*10h],0
|
|
||||||
or byte[DSPMem+7Ch],%3
|
|
||||||
%%SkipStuff
|
|
||||||
jmp %2
|
jmp %2
|
||||||
%%EndofSamp2
|
%%EndofSamp2
|
||||||
mov dword[Voice0EnvInc+%1*4],0
|
mov dword[Voice0EnvInc+%1*4],0
|
||||||
mov dword[Voice0IncNumber+%1*4],0
|
mov dword[Voice0IncNumber+%1*4],0
|
||||||
mov byte[Voice0State+%1],0
|
mov byte[Voice0State+%1],0
|
||||||
cmp byte[ENVDisable],1
|
|
||||||
je %%noSkipStuff2
|
|
||||||
%%noSkipStuff2
|
|
||||||
mov byte[DSPMem+08h+%1*10h],0
|
|
||||||
mov byte[DSPMem+09h+%1*10h],0
|
|
||||||
or byte[DSPMem+7Ch],%3
|
|
||||||
%%SkipStuff2
|
|
||||||
mov al,%1
|
mov al,%1
|
||||||
call VoiceStarter
|
call VoiceStarter
|
||||||
jmp %%SkipProcess2
|
jmp %%SkipProcess2
|
||||||
|
|||||||
@@ -1439,7 +1439,6 @@ extern unsigned char opexec358cph;
|
|||||||
extern unsigned char opexec268cphb;
|
extern unsigned char opexec268cphb;
|
||||||
extern unsigned char opexec358cphb;
|
extern unsigned char opexec358cphb;
|
||||||
extern unsigned char DSP1Type;
|
extern unsigned char DSP1Type;
|
||||||
extern unsigned int ewj2hack;
|
|
||||||
extern unsigned char cycpl;
|
extern unsigned char cycpl;
|
||||||
unsigned char HacksDisable;
|
unsigned char HacksDisable;
|
||||||
|
|
||||||
@@ -1634,16 +1633,6 @@ void headerhack()
|
|||||||
//Okaaay...
|
//Okaaay...
|
||||||
if(DSP1Type) { disablehdma = true; }
|
if(DSP1Type) { disablehdma = true; }
|
||||||
|
|
||||||
//Earthworm Jim 2 (all regions?)
|
|
||||||
if (!strncmp((RomData+Lo),"EARTHWORM JIM 2 " ,20))
|
|
||||||
{
|
|
||||||
RomData[0x2A9C1A] = 0;
|
|
||||||
RomData[0x2A9C1B] = 0;
|
|
||||||
RomData[0x2A9C1F] = 0;
|
|
||||||
RomData[0x2A9C20] = 0;
|
|
||||||
ewj2hack = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Lamborghini - American Challenge (U/E)
|
//Lamborghini - American Challenge (U/E)
|
||||||
if (!strncmp((RomData+Lo), "LAMBORGHINI AMERICAN", 20))
|
if (!strncmp((RomData+Lo), "LAMBORGHINI AMERICAN", 20))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user