Skip to content

Commit

Permalink
Mappers: Fix a bug I introduced in 218c8ae by lacking attention. (#104)
Browse files Browse the repository at this point in the history
+ Missing compat.txt entry.
  • Loading branch information
ocornut committed May 30, 2023
1 parent 218c8ae commit 1566428
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion meka/compat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@
T2: The Arcade Game - Ok
Taito Chase H.Q. - Ok
Taito Chase H.Q. [Proto] - Ok
Tank Battalion (KR) - *Ok
Taz in Escape From Mars (BR) - Ok
Taz-Mania - Ok
Taz-Mania [Proto] - Ok
Expand Down Expand Up @@ -675,7 +676,7 @@
Zillion II: The Tri Formation [Proto] FM Ok
Zool - Ok
-----------------------------------------------------------------------------
654 games tested - 650 are "Ok"
655 games tested - 651 are "Ok"
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions meka/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ They are usually of 2 kinds:
- Added support for Korean xx-in-1 mapper at 0xFFF0,0xFFFE,0xFFFF for: 'Mega Mode Super Game 30 [SMS-MD]'. [bsittler]
- Added support for Korean xx-in-1 mapper at 0xFFF5,0xFFFE,0xFFFF for 'Jaemiissneun Game Mo-eumjip 42 Hap [SMS-MD]'. [bsittler]
- Added support for Korean xx-in-1 mapper at 0xFFFA,0xFFFE,0xFFFF for 'Game Jiphap 30 Hap [SMS-MD]'. [bsittler]
- Added support for Korean xx-in-1 mapper at 0x8000 for 'Zemina Best 88', 'Zemina Best 25' etc. [bsittler]
- Added support for SC-3000 Survivors Multicart mapper. [Omar,Honestbob]
- Fixed 32K "No Mapper" mapper from forwarding 3-D Glasses writes. Fixes '3D Gunner'. [Omar]
- SMS/GG ROM images smaller than 48KB default to using no mapper. [Omar]
Expand Down
7 changes: 5 additions & 2 deletions meka/srcs/saves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ void Load_Game_Fixup(void)
WrZ80_NoHook(0x2000, g_machine.mapper_regs[0]);
break;
case MAPPER_SMS_Korean_MSX_SMS_8000:
WrZ80_NoHook(0x8000, 0x00); // reset the mapper to avoid the 0xFF special case
WrZ80_NoHook(0x8000, g_machine.mapper_regs[0]);
{
int mapper_page = g_machine.mapper_regs[0];
WrZ80_NoHook(0x8000, 0x00); // reset the mapper to avoid the 0xFF special case
WrZ80_NoHook(0x8000, mapper_page);
}
break;
}
}
Expand Down

0 comments on commit 1566428

Please sign in to comment.