summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/2203intf.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-04-30 05:12:28 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-04-30 05:12:28 +0000
commit2465eb7e4eb5907030deee47df154111b40722d2 (patch)
tree5f8a4977110c61be9f0e3f9fefdeb359f8674ca1 /src/emu/sound/2203intf.c
parentde178033502ab8693e7196cc59cf801cba1c7dc1 (diff)
Converted presave/postload functions to delegates. In a lot of
cases, we can get rid of the postload function entirely and just call directly to the target function. Drivers eventually should just override device_postload() instead of registering for callbacks.
Diffstat (limited to 'src/emu/sound/2203intf.c')
-rw-r--r--src/emu/sound/2203intf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c
index 6911fe32ba7..7a60892da78 100644
--- a/src/emu/sound/2203intf.c
+++ b/src/emu/sound/2203intf.c
@@ -106,9 +106,8 @@ static STREAM_UPDATE( ym2203_stream_update )
}
-static STATE_POSTLOAD( ym2203_intf_postload )
+static void ym2203_intf_postload (ym2203_state *info)
{
- ym2203_state *info = (ym2203_state *)param;
ym2203_postload(info->chip);
}
@@ -144,7 +143,7 @@ static DEVICE_START( ym2203 )
info->chip = ym2203_init(info,device,device->clock(),rate,timer_handler,IRQHandler,&psgintf);
assert_always(info->chip != NULL, "Error creating YM2203 chip");
- device->machine().save().register_postload(ym2203_intf_postload, info);
+ device->machine().save().register_postload(save_prepost_delegate(FUNC(ym2203_intf_postload), info));
}
static DEVICE_STOP( ym2203 )