diff options
| author | 2014-10-15 07:19:47 +0000 | |
|---|---|---|
| committer | 2014-10-15 07:19:47 +0000 | |
| commit | c93ed344fbd26a9c2c49bdbc99014d8dc0cbe9ef (patch) | |
| tree | a5017b8341bdadc5bcd1185ae49fe4c0a85424b8 /src/emu/bus/vboy | |
| parent | a4dd32afb6cbfaae0e452c90486060682ab1c31c (diff) | |
Cleanups and version bumpmame0155
Diffstat (limited to 'src/emu/bus/vboy')
| -rw-r--r-- | src/emu/bus/vboy/rom.h | 4 | ||||
| -rw-r--r-- | src/emu/bus/vboy/slot.c | 6 | ||||
| -rw-r--r-- | src/emu/bus/vboy/slot.h | 7 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/emu/bus/vboy/rom.h b/src/emu/bus/vboy/rom.h index 6d474256d33..0101c303790 100644 --- a/src/emu/bus/vboy/rom.h +++ b/src/emu/bus/vboy/rom.h @@ -15,10 +15,10 @@ public: // construction/destruction vboy_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); vboy_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - + // device-level overrides virtual void device_start() {} - + // reading and writing virtual DECLARE_READ32_MEMBER(read_cart); }; diff --git a/src/emu/bus/vboy/slot.c b/src/emu/bus/vboy/slot.c index a20d8ef5933..bcc3961e842 100644 --- a/src/emu/bus/vboy/slot.c +++ b/src/emu/bus/vboy/slot.c @@ -151,7 +151,7 @@ static const char *vboy_get_slot(int type) if (slot_list[i].pcb_id == type) return slot_list[i].slot_option; } - + return "vb_rom"; } #endif @@ -179,7 +179,7 @@ bool vboy_cart_slot_device::call_load() m_cart->rom_alloc(0x200000, tag()); if (has_eeprom) m_cart->eeprom_alloc(get_software_region_length("eeprom")); - + ROM = (UINT8 *)m_cart->get_rom_base(); if (software_entry() == NULL) @@ -190,7 +190,7 @@ bool vboy_cart_slot_device::call_load() if (len < 0x080000) { memcpy(ROM + 0x040000, ROM, 0x040000); } if (len < 0x100000) { memcpy(ROM + 0x080000, ROM, 0x080000); } if (len < 0x200000) { memcpy(ROM + 0x100000, ROM, 0x100000); } - + if (software_entry() == NULL) m_type = vboy_get_pcb_id("vb_rom"); else diff --git a/src/emu/bus/vboy/slot.h b/src/emu/bus/vboy/slot.h index 910d61ab2ea..afa33c600d4 100644 --- a/src/emu/bus/vboy/slot.h +++ b/src/emu/bus/vboy/slot.h @@ -37,7 +37,7 @@ public: UINT32 get_rom_size() { return m_rom_size; } UINT32 get_eeprom_size() { return m_eeprom.count(); } - void save_eeprom() { device().save_item(NAME(m_eeprom)); } + void save_eeprom() { device().save_item(NAME(m_eeprom)); } protected: // internal state @@ -71,7 +71,7 @@ public: int get_type() { return m_type; } int get_cart_type(UINT8 *ROM, UINT32 len); - void save_eeprom() { if (m_cart && m_cart->get_eeprom_size()) m_cart->save_eeprom(); } + void save_eeprom() { if (m_cart && m_cart->get_eeprom_size()) m_cart->save_eeprom(); } virtual iodevice_t image_type() const { return IO_CARTSLOT; } virtual bool is_readable() const { return 1; } @@ -111,6 +111,5 @@ extern const device_type VBOY_CART_SLOT; #define MCFG_VBOY_CARTRIDGE_ADD(_tag,_slot_intf,_def_slot) \ MCFG_DEVICE_ADD(_tag, VBOY_CART_SLOT, 0) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) \ - + MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) #endif |
