diff options
author | 2011-04-30 05:12:28 +0000 | |
---|---|---|
committer | 2011-04-30 05:12:28 +0000 | |
commit | 2465eb7e4eb5907030deee47df154111b40722d2 (patch) | |
tree | 5f8a4977110c61be9f0e3f9fefdeb359f8674ca1 /src/emu/sound/2203intf.c | |
parent | de178033502ab8693e7196cc59cf801cba1c7dc1 (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.c | 5 |
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 ) |