From 6abda2df0f2fab1c06c7b1f4d39a78b363e96d6b Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Fri, 24 Oct 2025 01:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=B9=E4=BA=8E=E7=BC=BA?= =?UTF-8?q?=E5=B0=91EEPROM=E7=9A=84M92=E8=A1=97=E6=9C=BA=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E7=9A=84=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98=E3=80=82=E9=9A=BE?= =?UTF-8?q?=E7=BB=B7=EF=BC=8Ceeprom=E6=98=AF=E4=B8=80=E4=B8=AA=E5=8F=AF?= =?UTF-8?q?=E8=AF=BB=E5=86=99=E5=AD=98=E5=82=A8=E5=99=A8=EF=BC=8C=E6=A0=B9?= =?UTF-8?q?=E6=9C=AC=E4=B8=8D=E7=94=A8dump=E6=88=90rom=20=E4=BD=86?= =?UTF-8?q?=E6=98=AF=E6=9F=90=E4=BA=9B=E6=B8=B8=E6=88=8F=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E5=AE=9E=E9=99=85=E6=B2=A1=E6=9C=89=E6=84=8F?= =?UTF-8?q?=E4=B9=89=E3=80=82=E6=AF=94=E5=A6=82=E6=A3=92=E7=90=83=E5=B0=8F?= =?UTF-8?q?=E5=AD=90=EF=BC=88=E5=BF=8D=E8=80=85=E6=A3=92=E7=90=83=EF=BC=89?= =?UTF-8?q?=20=E6=89=80=E4=BB=A5=E8=BF=99=E9=87=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89eeprom.rom=EF=BC=8C=E5=B0=B1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=B8=80=E4=B8=AA=E7=A9=BA=E7=9A=84eeprom=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=20=E9=95=BF=E5=BA=A6128(0x80)=E5=AD=97=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Plugins/Mame.Core/mame/m92/M92.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/AxibugEmuOnline.Client/Assets/Plugins/Mame.Core/mame/m92/M92.cs b/AxibugEmuOnline.Client/Assets/Plugins/Mame.Core/mame/m92/M92.cs index be390150..51893162 100644 --- a/AxibugEmuOnline.Client/Assets/Plugins/Mame.Core/mame/m92/M92.cs +++ b/AxibugEmuOnline.Client/Assets/Plugins/Mame.Core/mame/m92/M92.cs @@ -351,7 +351,19 @@ namespace MAME.Core gfx21rom[i2 * 2] = (byte)(gfx2rom[i2] >> 4); gfx21rom[i2 * 2 + 1] = (byte)(gfx2rom[i2] & 0x0f); } - eeprom_set = Machine.GetRom("eeprom.rom"); + var eepromdata = Machine.GetRom("eeprom.rom"); + //难绷,eeprom是一个可读写存储器,根本不用dump成rom + //但是某些游戏依赖,但实际没有意义。比如棒球小子(忍者棒球) + //所以这里如果没有eeprom.rom,就创建一个空的eeprom数据 长度128(0x80)字节 + if (eepromdata != null) + { + eeprom_set = eepromdata; + } + else + { + eeprom_set = new byte[0x80]; + } + //eeprom_set = Machine.GetRom("eeprom.rom"); m92_game_kludge = 0; m92_irq_vectorbase = 0x80; m92_sprite_buffer_busy = 1;