diff --git a/core/hw/naomi/naomi_cart.cpp b/core/hw/naomi/naomi_cart.cpp index a5bd0cc9d6..697616bfd3 100644 --- a/core/hw/naomi/naomi_cart.cpp +++ b/core/hw/naomi/naomi_cart.cpp @@ -333,6 +333,8 @@ static bool naomi_cart_LoadZip(char *filename) delete file; } } + if (naomi_default_eeprom == NULL && game->eeprom_dump != NULL) + naomi_default_eeprom = game->eeprom_dump; if (archive != NULL) delete archive; if (parent_archive != NULL) diff --git a/core/hw/naomi/naomi_roms.h b/core/hw/naomi/naomi_roms.h index 08a97f9675..c31b44f01e 100644 --- a/core/hw/naomi/naomi_roms.h +++ b/core/hw/naomi/naomi_roms.h @@ -24,6 +24,7 @@ */ #pragma once #include "naomi_roms_input.h" +#include "naomi_roms_eeprom.h" #define MAX_GAME_FILES 40 @@ -204,6 +205,7 @@ struct Game } blobs[MAX_GAME_FILES]; const char *gdrom_name; InputDescriptors *inputs; + u8 *eeprom_dump; } Games[] = { @@ -4026,7 +4028,10 @@ Games[] = { "ic10.bin", 0x8000000, 0x4000000 }, { "317-5132-jpn.ic3", 0, 0x800, Key }, { NULL, 0, 0 }, - } + }, + NULL, + NULL, + mamonoro_eeprom_dump }, // Melty Blood Actress Again Version A (Japan, Rev A) { diff --git a/core/hw/naomi/naomi_roms_eeprom.h b/core/hw/naomi/naomi_roms_eeprom.h new file mode 100644 index 0000000000..d58b08c9a2 --- /dev/null +++ b/core/hw/naomi/naomi_roms_eeprom.h @@ -0,0 +1,36 @@ +/* + * Created on: apr 11, 2019 + + Copyright 2018 barbudreadmon + + This file is part of reicast. + + reicast is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + reicast is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with reicast. If not, see . + */ + +#ifndef CORE_HW_NAOMI_NAOMI_ROMS_EEPROM_H_ +#define CORE_HW_NAOMI_NAOMI_ROMS_EEPROM_H_ + +u8 mamonoro_eeprom_dump[] = { + 0x96, 0xB2, 0x11, 0x42, 0x51, 0x53, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, + 0x96, 0xB2, 0x11, 0x42, 0x51, 0x53, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 +}; + +#endif /* CORE_HW_NAOMI_NAOMI_ROMS_EEPROM_H_ */