Skip to content

Commit ab6b95f

Browse files
committed
naomi: spawn needs the region number in its eeprom
The current region must be set in the eeprom, otherwise the eeprom is reset to default and network settings are ignored. Issue #696
1 parent b2d8ad6 commit ab6b95f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

core/hw/naomi/naomi_roms_eeprom.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ static u8 hmgeo_eeprom_dump[] = {
5454
0x00, 0x00
5555
};
5656

57+
// VMU enabled, network disabled (USA region)
5758
static u8 spawn_eeprom_dump[] = {
58-
0xcc, 0xde, 0x10, 0x42, 0x41, 0x56, 0x35, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
59-
0xcc, 0xde, 0x10, 0x42, 0x41, 0x56, 0x35, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
60-
0x51, 0x26, 0x20, 0x20, 0x51, 0x26, 0x20, 0x20, 0x17, 0x12, 0x99, 0x19, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
61-
0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x03, 0x06, 0x05, 0x00, 0x01, 0x01, 0x06, 0x00, 0x01, 0x00, 0x00,
62-
0x00, 0x00, 0x00, 0x00, 0x17, 0x12, 0x99, 0x19, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x00, 0x01, 0x00,
59+
0x37, 0x99, 0x10, 0x42, 0x41, 0x56, 0x35, 0x18, 0x10, 0x0b, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
60+
0x37, 0x99, 0x10, 0x42, 0x41, 0x56, 0x35, 0x18, 0x10, 0x0b, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
61+
0x41, 0x7b, 0x20, 0x20, 0x41, 0x7b, 0x20, 0x20, 0x17, 0x12, 0x99, 0x19, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01,
62+
0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x03, 0x06, 0x05, 0x00, 0x01, 0x01, 0x06, 0x00, 0x01, 0x00, 0x00,
63+
0x00, 0x00, 0x00, 0x00, 0x17, 0x12, 0x99, 0x19, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00,
6364
0x00, 0x00, 0x03, 0x03, 0x06, 0x05, 0x00, 0x01, 0x01, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
6465
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65-
0x00, 0x00,
66+
0x00, 0x00
6667
};
6768

6869
static u8 _18wheelr_eeprom_dump[] {

core/network/naomi_network.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ void SetNaomiNetworkConfig(int node)
327327
{
328328
write_naomi_eeprom(0x44, node == -1 ? 0
329329
: node == 0 ? 1 : 2);
330+
// the game wants the region there or it resets the eeprom
331+
write_naomi_eeprom(0x30, config::Region);
330332
}
331333
else if (gameId == "SPIKERS BATTLE JAPAN VERSION")
332334
{

0 commit comments

Comments
 (0)