From a8d021d5b5a7fdc7504f5cf23f658b4d95afaa1d Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Mon, 27 Jan 2014 08:11:16 +0000 Subject: [PATCH] (MESS) gameboy/gbcolor: fixed NVRAM saving. [Fabio Priuli] out of whatsnew: huge thanks to Shoegazer for reporting the problem! --- src/mess/machine/gb_mbc.c | 4 ---- src/mess/machine/gb_rom.c | 8 -------- src/mess/machine/gb_slot.c | 5 ++++- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/mess/machine/gb_mbc.c b/src/mess/machine/gb_mbc.c index ebb1de7f0cb..0e78e8453be 100644 --- a/src/mess/machine/gb_mbc.c +++ b/src/mess/machine/gb_mbc.c @@ -132,10 +132,6 @@ void gb_rom_mbc_device::shared_reset() m_ram_bank = 0; m_ram_enable = 0; m_mode = 0; - - has_rumble = FALSE; - has_timer = FALSE; - has_battery = FALSE; } //------------------------------------------------- diff --git a/src/mess/machine/gb_rom.c b/src/mess/machine/gb_rom.c index b4a3d56d4f3..bf062225e17 100644 --- a/src/mess/machine/gb_rom.c +++ b/src/mess/machine/gb_rom.c @@ -98,10 +98,6 @@ void gb_rom_device::shared_reset() m_ram_bank = 0; m_latch_bank = 0; m_latch_bank2 = 1; - - has_rumble = FALSE; - has_timer = FALSE; - has_battery = FALSE; } //------------------------------------------------- @@ -142,10 +138,6 @@ void megaduck_rom_device::device_reset() m_ram_bank = 0; m_latch_bank = 0; m_latch_bank2 = 1; - - has_rumble = FALSE; - has_timer = FALSE; - has_battery = FALSE; } diff --git a/src/mess/machine/gb_slot.c b/src/mess/machine/gb_slot.c index 612a5c9f19e..ccf09a729c2 100644 --- a/src/mess/machine/gb_slot.c +++ b/src/mess/machine/gb_slot.c @@ -39,7 +39,10 @@ device_gb_cart_interface::device_gb_cart_interface(const machine_config &mconfig m_rom(NULL), m_ram(NULL), m_rom_size(0), - m_ram_size(0) + m_ram_size(0), + has_rumble(FALSE), + has_timer(FALSE), + has_battery(FALSE) { }