src/mess/machine/nes.c
| r14297 | r14298 | |
| 293 | 293 | { |
| 294 | 294 | nes_state *state = machine.driver_data<nes_state>(); |
| 295 | 295 | |
| 296 | state->m_ppu = machine.device<ppu2c0x_device>("ppu"); |
| 296 | 297 | init_nes_core(machine); |
| 297 | 298 | machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(nes_machine_stop),&machine)); |
| 298 | 299 | |
| 299 | 300 | state->m_maincpu = machine.device("maincpu"); |
| 300 | | state->m_ppu = machine.device<ppu2c0x_device>("ppu"); |
| 301 | 301 | state->m_sound = machine.device("nessound"); |
| 302 | 302 | state->m_cart = machine.device("cart"); |
| 303 | 303 | |