mirror of
https://github.com/holub/mame
synced 2025-05-19 20:29:09 +03:00
nes.c: fixed crash. m_maincpu is not always defined at the very beginning (nw)
This commit is contained in:
parent
636c66af83
commit
f5ede05a29
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
void nes_state::init_nes_core()
|
void nes_state::init_nes_core()
|
||||||
{
|
{
|
||||||
address_space &space = m_maincpu->space(AS_PROGRAM);
|
address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
|
||||||
static const char *const bank_names[] = { "bank1", "bank2", "bank3", "bank4" };
|
static const char *const bank_names[] = { "bank1", "bank2", "bank3", "bank4" };
|
||||||
int i;
|
int i;
|
||||||
m_prg_chunks = 0;
|
m_prg_chunks = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user