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/cpu/cubeqcpu | |
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/cpu/cubeqcpu')
-rw-r--r-- | src/emu/cpu/cubeqcpu/cubeqcpu.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/emu/cpu/cubeqcpu/cubeqcpu.c b/src/emu/cpu/cubeqcpu/cubeqcpu.c index 3b27ffc0c7e..e64e917e5cd 100644 --- a/src/emu/cpu/cubeqcpu/cubeqcpu.c +++ b/src/emu/cpu/cubeqcpu/cubeqcpu.c @@ -250,11 +250,6 @@ READ16_DEVICE_HANDLER( cubeqcpu_rotram_r ) SOUND INITIALIZATION AND SHUTDOWN ***************************************************************************/ -static STATE_POSTLOAD( cquestsnd_postload ) -{ - -} - static void cquestsnd_state_register(device_t *device) { cquestsnd_state *cpustate = get_safe_token_snd(device); @@ -274,8 +269,6 @@ static void cquestsnd_state_register(device_t *device) device->save_item(NAME(cpustate->ramwlatch)); device->save_item(NAME(cpustate->prev_ipram)); device->save_item(NAME(cpustate->prev_ipwrt)); - - device->machine().save().register_postload(cquestsnd_postload, (void *)device); } static CPU_INIT( cquestsnd ) @@ -315,11 +308,6 @@ static CPU_EXIT( cquestsnd ) ROTATE INITIALIZATION AND SHUTDOWN ***************************************************************************/ -static STATE_POSTLOAD( cquestrot_postload ) -{ - -} - static void cquestrot_state_register(device_t *device) { cquestrot_state *cpustate = get_safe_token_rot(device); @@ -348,8 +336,6 @@ static void cquestrot_state_register(device_t *device) device->save_pointer(NAME(cpustate->dram), 16384); device->save_pointer(NAME(cpustate->sram), 2048); - - device->machine().save().register_postload(cquestrot_postload, (void *)device); } static CPU_INIT( cquestrot ) @@ -394,11 +380,6 @@ static CPU_EXIT( cquestrot ) #define ODD_FIELD 0 #define EVEN_FIELD 1 -static STATE_POSTLOAD( cquestlin_postload ) -{ - -} - static void cquestlin_state_register(device_t *device) { cquestlin_state *cpustate = get_safe_token_lin(device); @@ -432,8 +413,6 @@ static void cquestlin_state_register(device_t *device) device->save_pointer(NAME(cpustate->ptr_ram), 1024); device->save_pointer(NAME(cpustate->e_stack), 32768); device->save_pointer(NAME(cpustate->o_stack), 32768); - - device->machine().save().register_postload(cquestlin_postload, (void *)device); } static CPU_INIT( cquestlin ) |