diff options
author | 2019-03-25 23:13:40 +0100 | |
---|---|---|
committer | 2019-03-25 23:13:40 +0100 | |
commit | b380514764cf857469bae61c11143a19f79a74c5 (patch) | |
tree | 63c8012e262618f08a332da31dd714281aa2c5ed /src/devices/bus/msx_cart/halnote.cpp | |
parent | c24473ddff715ecec2e258a6eb38960cf8c8e98e (diff) |
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing
changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/devices/bus/msx_cart/halnote.cpp')
-rw-r--r-- | src/devices/bus/msx_cart/halnote.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/bus/msx_cart/halnote.cpp b/src/devices/bus/msx_cart/halnote.cpp index 43f7947ec2c..013d2b83680 100644 --- a/src/devices/bus/msx_cart/halnote.cpp +++ b/src/devices/bus/msx_cart/halnote.cpp @@ -19,12 +19,8 @@ msx_cart_halnote_device::msx_cart_halnote_device(const machine_config &mconfig, void msx_cart_halnote_device::device_start() { save_item(NAME(m_selected_bank)); -} - -void msx_cart_halnote_device::device_post_load() -{ - restore_banks(); + machine().save().register_postload(save_prepost_delegate(FUNC(msx_cart_halnote_device::restore_banks), this)); } @@ -88,7 +84,7 @@ void msx_cart_halnote_device::initialize_cartridge() } -uint8_t msx_cart_halnote_device::read_cart(offs_t offset) +READ8_MEMBER(msx_cart_halnote_device::read_cart) { if (offset >= 0xc000) { @@ -110,7 +106,7 @@ uint8_t msx_cart_halnote_device::read_cart(offs_t offset) } -void msx_cart_halnote_device::write_cart(offs_t offset, uint8_t data) +WRITE8_MEMBER(msx_cart_halnote_device::write_cart) { if (offset < 0x4000) { |