summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_cart/super_swangi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_cart/super_swangi.cpp')
-rw-r--r--src/devices/bus/msx_cart/super_swangi.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/devices/bus/msx_cart/super_swangi.cpp b/src/devices/bus/msx_cart/super_swangi.cpp
index 75ee75be6a0..a64b0648195 100644
--- a/src/devices/bus/msx_cart/super_swangi.cpp
+++ b/src/devices/bus/msx_cart/super_swangi.cpp
@@ -19,8 +19,12 @@ msx_cart_super_swangi_device::msx_cart_super_swangi_device(const machine_config
void msx_cart_super_swangi_device::device_start()
{
save_item(NAME(m_selected_bank));
+}
+
- machine().save().register_postload(save_prepost_delegate(FUNC(msx_cart_super_swangi_device::restore_banks), this));
+void msx_cart_super_swangi_device::device_post_load()
+{
+ restore_banks();
}
@@ -48,7 +52,7 @@ void msx_cart_super_swangi_device::initialize_cartridge()
}
-READ8_MEMBER(msx_cart_super_swangi_device::read_cart)
+uint8_t msx_cart_super_swangi_device::read_cart(offs_t offset)
{
if (offset >= 0x4000 && offset < 0xc000)
{
@@ -58,7 +62,7 @@ READ8_MEMBER(msx_cart_super_swangi_device::read_cart)
}
-WRITE8_MEMBER(msx_cart_super_swangi_device::write_cart)
+void msx_cart_super_swangi_device::write_cart(offs_t offset, uint8_t data)
{
if (offset == 0x8000)
{