Previous 15994 Revisions Next

r14736 Saturday 10th March, 2012 at 19:06:35 UTC by Firewave
fixed crash on exit of N64-based systems without any NVRAM (no whatsnew)
[src/mame/machine]n64.c

src/mame/machine/n64.c
r14735r14736
2222
2323n64_periphs::n64_periphs(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2424    : device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock)
25    , m_nvram_image(NULL)
2526{
2627}
2728
r14735r14736
23872388static void n64_machine_stop(running_machine &machine)
23882389{
23892390   n64_periphs *periphs = machine.device<n64_periphs>("rcp");
2391   
2392   if( periphs->m_nvram_image == NULL )
2393      return;
23902394
23912395   device_image_interface *image = dynamic_cast<device_image_interface *>(periphs->m_nvram_image);
23922396   //printf("Saving stuff\n");

Previous 15994 Revisions Next


© 1998-2018 The MESS Team