gamegear: allow master gear adapter to see lightphaser offsets. [Enik Land]

This commit is contained in:
etabeta78 2015-06-10 15:11:52 +02:00
parent a0e8c2703c
commit 2efe4c6553
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ public:
virtual DECLARE_READ8_MEMBER(read_cart) { return m_subslot->read_cart(space, offset); }
virtual DECLARE_WRITE8_MEMBER(write_cart) { m_subslot->write_cart(space, offset, data); }
virtual DECLARE_WRITE8_MEMBER(write_mapper) { m_subslot->write_mapper(space, offset, data); }
virtual int get_lphaser_xoffs() { return m_subslot->m_cart ? m_subslot->m_cart->get_lphaser_xoffs() : -1; }
virtual machine_config_constructor device_mconfig_additions() const;

View File

@ -47,6 +47,7 @@ public:
virtual DECLARE_READ8_MEMBER(read_cart) { return 0xff; }
virtual DECLARE_WRITE8_MEMBER(write_cart) {}
virtual DECLARE_WRITE8_MEMBER(write_mapper) {}
virtual int get_lphaser_xoffs() { return m_lphaser_xoffs; }
// a few carts (for SG1000) acts as a RAM expansion, taking control of the system RAM in 0xc000-0xffff
virtual DECLARE_READ8_MEMBER(read_ram) { return 0xff; }
virtual DECLARE_WRITE8_MEMBER(write_ram) {}
@ -61,7 +62,6 @@ public:
void set_late_battery(bool val) { m_late_battery_enable = val; }
bool get_late_battery() { return m_late_battery_enable; }
void set_lphaser_xoffs(int val) { m_lphaser_xoffs = val; }
int get_lphaser_xoffs() { return m_lphaser_xoffs; }
void set_sms_mode(int val) { m_sms_mode = val; }
int get_sms_mode() { return m_sms_mode; }