mapper 15 - fixed regression by previous fixes (waising / subors does not work properly with CHR write protection on mode 0)
This commit is contained in:
parent
d21c3d0c4d
commit
0fc18be6b8
|
@ -55,23 +55,19 @@ static void Sync(void) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
setchr8(0);
|
||||
}
|
||||
|
||||
static DECLFW(M15Write) {
|
||||
latchea = A;
|
||||
latched = V;
|
||||
switch (latchea & 3) {
|
||||
case 0:
|
||||
case 3:
|
||||
// cah4e3 02.10.19 once again, there may be either two similar mapper 15 exist. the one for 110in1 or 168in1 carts with complex multi game features.
|
||||
// and another implified version for subor/waixing chinese originals and hacks with no different modes, working only in mode 0 and which does not
|
||||
// expect there is any CHR write protection. protecting CHR writes only for mode 3 fixes the problem, all roms may be run on the same source again.
|
||||
if((latchea & 3) == 3)
|
||||
SetupCartCHRMapping(0, CHRptr[0], 0x2000, 0);
|
||||
setchr8(0);
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
else
|
||||
SetupCartCHRMapping(0, CHRptr[0], 0x2000, 1);
|
||||
setchr8(0);
|
||||
break;
|
||||
}
|
||||
Sync();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue