Skip to content

Commit

Permalink
KT-008 handling fix for FF Xn games. probably they are the same mappe…
Browse files Browse the repository at this point in the history
…r with a set of different modes switching by specific bits (TODO, check the hardware: i have FFX games, but haven't any KT-008 games!)
  • Loading branch information
g0me3 committed Jun 24, 2019
1 parent 8b19f01 commit 705f1c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/boards/mmc3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ void MMC3RegReset(void) {
DRegBuf[6] = 0;
DRegBuf[7] = 1;

// KT-008 boards hack 2-in-1, TODO assign to new ines mapper, most dump of KT-boards on the net are mapper 4, so need database or goodnes fix support
kt_extra = 0;

FixMMC3PRG(0);
FixMMC3CHR(0);
}
Expand Down Expand Up @@ -187,7 +190,14 @@ DECLFW(MMC3_IRQWrite) {
DECLFW(KT008HackWrite) {
// FCEU_printf("%04x:%04x\n",A,V);
switch (A & 3) {
case 0: kt_extra = V; FixMMC3PRG(MMC3_cmd); break;
case 0: {
if (V == 0x27) // FF Xn hack! one more mapper in one
kt_extra = 0;
else
kt_extra = V;
FixMMC3PRG(MMC3_cmd);
break;
}
case 1: break; // unk
case 2: break; // unk
case 3: break; // unk
Expand Down

0 comments on commit 705f1c9

Please sign in to comment.