mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
regression fixes (nw)
This commit is contained in:
parent
76572532a0
commit
bc1ee10112
@ -2284,11 +2284,10 @@ void bfm_sc2_state::sc2_common_init(int decrypt)
|
||||
|
||||
void bfm_sc2_state::adder2_common_init()
|
||||
{
|
||||
UINT8 *pal;
|
||||
|
||||
pal = memregion("proms")->base();
|
||||
if ( pal )
|
||||
if (memregion("proms") != nullptr)
|
||||
{
|
||||
UINT8 *pal;
|
||||
pal = memregion("proms")->base();
|
||||
memcpy(m_key, pal, 8);
|
||||
}
|
||||
}
|
||||
|
@ -8242,9 +8242,11 @@ DRIVER_INIT_MEMBER(segas16b_state,sdi_5358_small)
|
||||
DRIVER_INIT_CALL(generic_5358_small);
|
||||
m_custom_io_r = read16_delegate(FUNC(segas16b_state::sdi_custom_io_r), this);
|
||||
|
||||
UINT8 *rom = memregion("maincpux")->base();
|
||||
if (rom)
|
||||
if (memregion("maincpux") != nullptr)
|
||||
{
|
||||
UINT8 *rom = memregion("maincpux")->base();
|
||||
memcpy(m_decrypted_opcodes, rom, 0x30000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user