summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_cart/holy_quran.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_cart/holy_quran.cpp')
-rw-r--r--src/devices/bus/msx_cart/holy_quran.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/bus/msx_cart/holy_quran.cpp b/src/devices/bus/msx_cart/holy_quran.cpp
index 046ed194502..4c44656a9e3 100644
--- a/src/devices/bus/msx_cart/holy_quran.cpp
+++ b/src/devices/bus/msx_cart/holy_quran.cpp
@@ -30,12 +30,8 @@ void msx_cart_holy_quran_device::device_start()
{
save_item(NAME(m_selected_bank));
save_item(NAME(m_decrypt));
-}
-
-void msx_cart_holy_quran_device::device_post_load()
-{
- restore_banks();
+ machine().save().register_postload(save_prepost_delegate(FUNC(msx_cart_holy_quran_device::restore_banks), this));
}
@@ -68,7 +64,7 @@ void msx_cart_holy_quran_device::initialize_cartridge()
}
-uint8_t msx_cart_holy_quran_device::read_cart(offs_t offset)
+READ8_MEMBER(msx_cart_holy_quran_device::read_cart)
{
if (offset >= 0x4000 && offset < 0xc000)
{
@@ -92,7 +88,7 @@ uint8_t msx_cart_holy_quran_device::read_cart(offs_t offset)
}
-void msx_cart_holy_quran_device::write_cart(offs_t offset, uint8_t data)
+WRITE8_MEMBER(msx_cart_holy_quran_device::write_cart)
{
switch (offset)
{