Mapper42: Support for 256K prg rom fds conversion of Green Beret

This commit is contained in:
negativeExponent
2020-03-05 22:27:19 +08:00
parent e9eb314311
commit 80b002a04e
4 changed files with 21 additions and 5 deletions

View File

@@ -18,7 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* FDS Conversion
*
* - Ai Senshi Nicol (256K PRG, 128K CHR)
* - Bio Miracle Bokutte Upa (J) (128K PRG, 0K CHR)
*/
#include "mapinc.h"
@@ -76,6 +77,11 @@ static void StateRestore(int version) {
}
void Mapper42_Init(CartInfo *info) {
if (info->CHRRomSize == 0 && info->PRGRomSize > 131072) {
/* Green Beret FDS Conversion can be 160K or 256K */
AC08_Init(info);
return;
}
info->Power = M42Power;
MapIRQHook = M42IRQHook;
GameStateRestore = StateRestore;