summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ssingles.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-02-08 16:55:59 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-02-08 16:55:59 +0000
commit44e80e9a063a4539cb6b48388acd295ff11f3036 (patch)
treef4c8f3703afd88fd6fd41c7d6613ab723eb63f21 /src/mame/drivers/ssingles.c
parent08f236d927beb545449301cab7cc7f0f2b102bb4 (diff)
Take advantage of the driver_device to clean up state saving for
many drivers. Also move some allocated memory into arrays in the state structure where appropriate (this is still in progress). Regex'es used (in src/mame only): state_save_register_global( *)\(( *)([^,]+), *state->([^ )]+)( *)\) state->save_item\1\(\2NAME\(state->\4\)\5\) state_save_register_global_array( *)\(( *)([^,]+), *state->([^ )]+)( *)\) state->save_item\1\(\2NAME\(state->\4\)\5\) state_save_register_global_bitmap( *)\(( *)([^,]+), *state->([^ )]+)( *)\) state->save_item\1\(\2NAME\(*state->\4\)\5\) state_save_register_global_pointer( *)\(( *)([^,]+), *state->([^,]+), state->save_pointer\1\(\2NAME\(state->\4\)\5,
Diffstat (limited to 'src/mame/drivers/ssingles.c')
-rw-r--r--src/mame/drivers/ssingles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/ssingles.c b/src/mame/drivers/ssingles.c
index 122e4cdccc1..28838c40528 100644
--- a/src/mame/drivers/ssingles.c
+++ b/src/mame/drivers/ssingles.c
@@ -551,8 +551,8 @@ static DRIVER_INIT(ssingles)
state->videoram=auto_alloc_array_clear(machine, UINT8, VMEM_SIZE);
state->colorram=auto_alloc_array_clear(machine, UINT8, VMEM_SIZE);
- state_save_register_global_pointer(machine, state->videoram, VMEM_SIZE);
- state_save_register_global_pointer(machine, state->colorram, VMEM_SIZE);
+ state->save_pointer(NAME(state->videoram), VMEM_SIZE);
+ state->save_pointer(NAME(state->colorram), VMEM_SIZE);
}
GAME( 1983, ssingles, 0, ssingles, ssingles, ssingles, ROT90, "Ent. Ent. Ltd", "Swinging Singles", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND )