From 65f54f1fd39fa66257e86fc184173fc93592371a Mon Sep 17 00:00:00 2001 From: Osso13 Date: Mon, 19 Jan 2015 18:47:00 +0100 Subject: [PATCH] pacman.c: fixed mschamp save state problem (nw) --- src/mame/drivers/pacman.c | 9 +++++++-- src/mame/includes/pacman.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/pacman.c b/src/mame/drivers/pacman.c index 0e510864c13..66fb72143f4 100644 --- a/src/mame/drivers/pacman.c +++ b/src/mame/drivers/pacman.c @@ -6616,6 +6616,11 @@ DRIVER_INIT_MEMBER(pacman_state,mspacman) membank("bank1")->set_entry(1); } +DRIVER_INIT_MEMBER(pacman_state, mschamp) +{ + save_item(NAME(m_counter)); +} + DRIVER_INIT_MEMBER(pacman_state,woodpek) { int i, len; @@ -6844,8 +6849,8 @@ GAME( 1981, mspacii, mspacman, woodpek, mspacman, pacman_state, mspacii, ROT GAME( 1981, mspacii2, mspacman, woodpek, mspacman, pacman_state, mspacii, ROT90, "bootleg (Orca)", "Ms. Pac-Man II (Orca bootleg set 2)", GAME_SUPPORTS_SAVE ) GAME( 1981, pacgal, mspacman, woodpek, mspacman, driver_device, 0, ROT90, "hack", "Pac-Gal", GAME_SUPPORTS_SAVE ) GAME( 1981, mspacpls, mspacman, woodpek, mspacpls, driver_device, 0, ROT90, "hack", "Ms. Pac-Man Plus", GAME_SUPPORTS_SAVE ) -GAME( 1992, mschamp, mspacman, mschamp, mschamp, driver_device, 0, ROT90, "hack", "Ms. Pacman Champion Edition / Zola-Puc Gal", GAME_SUPPORTS_SAVE ) /* Rayglo version */ -GAME( 1995, mschamps, mspacman, mschamp, mschamp, driver_device, 0, ROT90, "hack", "Ms. Pacman Champion Edition / Super Zola-Puc Gal", GAME_SUPPORTS_SAVE ) +GAME( 1992, mschamp, mspacman, mschamp, mschamp, pacman_state, mschamp, ROT90, "hack", "Ms. Pacman Champion Edition / Zola-Puc Gal", GAME_SUPPORTS_SAVE ) /* Rayglo version */ +GAME( 1995, mschamps, mspacman, mschamp, mschamp, pacman_state, mschamp, ROT90, "hack", "Ms. Pacman Champion Edition / Super Zola-Puc Gal", GAME_SUPPORTS_SAVE ) // These bootlegs have MADE IN GREECE clearly visible and etched into the PCBs. They were very common in Spain with several operators having their own versions. // Based on the PCBs and copyright dates shown they were produced late 80s / early 90s. Usually they run a version of Ms. Pacman, but were sometimes converted back to regular Pac-Man diff --git a/src/mame/includes/pacman.h b/src/mame/includes/pacman.h index 999a5222c22..b21721dbb46 100644 --- a/src/mame/includes/pacman.h +++ b/src/mame/includes/pacman.h @@ -125,6 +125,7 @@ public: DECLARE_DRIVER_INIT(8bpm); DECLARE_DRIVER_INIT(porky); DECLARE_DRIVER_INIT(mspacman); + DECLARE_DRIVER_INIT(mschamp); TILEMAP_MAPPER_MEMBER(pacman_scan_rows); TILE_GET_INFO_MEMBER(pacman_get_tile_info); TILE_GET_INFO_MEMBER(s2650_get_tile_info);