Skip to content

Commit

Permalink
Add eeprom dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon committed Apr 11, 2019
1 parent 79e6236 commit a29273a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/hw/naomi/naomi_cart.cpp
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion core/hw/naomi/naomi_roms.h
Expand Up @@ -24,6 +24,7 @@
*/
#pragma once
#include "naomi_roms_input.h"
#include "naomi_roms_eeprom.h"

#define MAX_GAME_FILES 40

Expand Down Expand Up @@ -204,6 +205,7 @@ struct Game
} blobs[MAX_GAME_FILES];
const char *gdrom_name;
InputDescriptors *inputs;
u8 *eeprom_dump;
}
Games[] =
{
Expand Down Expand Up @@ -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)
{
Expand Down
36 changes: 36 additions & 0 deletions 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 <https://www.gnu.org/licenses/>.
*/

#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_ */

0 comments on commit a29273a

Please sign in to comment.