diff options
author | 2008-04-11 05:41:46 +0000 | |
---|---|---|
committer | 2008-04-11 05:41:46 +0000 | |
commit | dbb98c547380ba8c6148f9f49b9bbb81a15d89e5 (patch) | |
tree | 325ff3b39776788b20e5a6d02c0428524b1152c3 /src/emu/tilemap.c | |
parent | 6331c8d69950041543552fc528018a373e1091ae (diff) |
Reduced the number of save state callback types from 3 to 1. The
only remaining form is the one that takes a pointer parameter.
Added macros for STATE_PRESAVE and STATE_POSTLOAD to define common
functions. Added machine parameter to these functions.
Updated all drivers and CPU/sound cores to use the new macros
and consolidate on the single function type. As a result pushed
the machine parameter through a few initialization stacks.
Removed unnecessary postload callbacks which only marked all tiles
dirty, since this is done automatically by the tilemap engine.
Diffstat (limited to 'src/emu/tilemap.c')
-rw-r--r-- | src/emu/tilemap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/tilemap.c b/src/emu/tilemap.c index c72ae932649..bd9af3942f3 100644 --- a/src/emu/tilemap.c +++ b/src/emu/tilemap.c @@ -138,7 +138,7 @@ static UINT32 screen_width, screen_height; /* system management helpers */ static void tilemap_exit(running_machine *machine); -static void tilemap_postload(void *param); +static STATE_POSTLOAD( tilemap_postload ); static void tilemap_dispose(tilemap *tmap); /* logical <-> memory index mapping */ @@ -355,7 +355,7 @@ tilemap *tilemap_create(tile_get_info_func tile_get_info, tilemap_mapper_func ma tilemap_instance++; /* reset everything after a load */ - state_save_register_func_postload_ptr(tilemap_postload, tmap); + state_save_register_postload(Machine, tilemap_postload, tmap); return tmap; } @@ -1050,7 +1050,7 @@ static void tilemap_exit(running_machine *machine) invalidate everything -------------------------------------------------*/ -static void tilemap_postload(void *param) +static STATE_POSTLOAD( tilemap_postload ) { /* recompute the mappings for this tilemap */ tilemap *tmap = param; |