diff options
author | 2014-04-09 11:22:57 +0000 | |
---|---|---|
committer | 2014-04-09 11:22:57 +0000 | |
commit | 70ba5a57c0926a1bf278bc8663df141f3b49f304 (patch) | |
tree | b630a5a65350341f2a4f08932e1259a257524714 /src/emu/bus/sega8/sega8_slot.h | |
parent | b90a14b1ebd1e3fbe235a748a894635b9804f601 (diff) |
(MESS) pce_slot.c: nuked some auto_allocs, using dynamic_buffer instead. nw.
(MESS) sega8_slot.c: nuked some auto_allocs, using dynamic_buffer instead. nw.
Diffstat (limited to 'src/emu/bus/sega8/sega8_slot.h')
-rw-r--r-- | src/emu/bus/sega8/sega8_slot.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/emu/bus/sega8/sega8_slot.h b/src/emu/bus/sega8/sega8_slot.h index c7d32c2e440..79651f7b156 100644 --- a/src/emu/bus/sega8/sega8_slot.h +++ b/src/emu/bus/sega8/sega8_slot.h @@ -49,8 +49,8 @@ public: virtual DECLARE_READ8_MEMBER(read_ram) { return 0xff; } virtual DECLARE_WRITE8_MEMBER(write_ram) {} - void rom_alloc(running_machine &machine, UINT32 size); - void ram_alloc(running_machine &machine, UINT32 size); + void rom_alloc(UINT32 size); + void ram_alloc(UINT32 size); virtual void late_bank_setup() {} @@ -66,18 +66,16 @@ public: //protected: UINT8* get_rom_base() { return m_rom; } UINT8* get_ram_base() { return m_ram; } - UINT32 get_rom_size() { return m_rom_size; } - UINT32 get_ram_size() { return m_ram_size; } + UINT32 get_rom_size() { return m_rom.count(); } + UINT32 get_ram_size() { return m_ram.count(); } void rom_map_setup(UINT32 size); void ram_map_setup(UINT8 banks); //private: // internal state - UINT8 *m_rom; - UINT8 *m_ram; - UINT32 m_rom_size; - UINT32 m_ram_size; + dynamic_buffer m_rom; + dynamic_buffer m_ram; int m_rom_page_count; bool has_battery; |