summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/poolshrk.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-01-27 08:21:35 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-01-27 08:21:35 +0000
commitb36244a73411ba82201718f82421367ba6219651 (patch)
treea7ca87f60d5b1a14d1509a28db736cb37872d440 /src/mame/includes/poolshrk.h
parent2fc75fcd4520412da25b5c5b68e3dca0bd391f16 (diff)
From: Atari Ace [atari_ace@frontier.com]
Sent: Saturday, January 22, 2011 2:11 PM To: submit@mamedev.org Cc: atariace@hotmail.com; Aaron Giles Subject: [patch] Add driver_device to some Atari drivers Hi mamedev, This patch eliminates static/global variables in a number of Atari drivers by moving them into a driver_device. ~aa
Diffstat (limited to 'src/mame/includes/poolshrk.h')
-rw-r--r--src/mame/includes/poolshrk.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/mame/includes/poolshrk.h b/src/mame/includes/poolshrk.h
index 33b786dbd69..98777453c1a 100644
--- a/src/mame/includes/poolshrk.h
+++ b/src/mame/includes/poolshrk.h
@@ -8,6 +8,20 @@
/* Discrete Sound Input Nodes */
+class poolshrk_state : public driver_device
+{
+public:
+ poolshrk_state(running_machine &machine, const driver_device_config_base &config)
+ : driver_device(machine, config) { }
+
+ int da_latch;
+ UINT8* playfield_ram;
+ UINT8* hpos_ram;
+ UINT8* vpos_ram;
+ tilemap_t* bg_tilemap;
+};
+
+
/*----------- defined in audio/poolshrk.c -----------*/
WRITE8_DEVICE_HANDLER( poolshrk_scratch_sound_w );
@@ -23,6 +37,3 @@ DISCRETE_SOUND_EXTERN( poolshrk );
VIDEO_START( poolshrk );
VIDEO_UPDATE( poolshrk );
-extern UINT8* poolshrk_playfield_ram;
-extern UINT8* poolshrk_hpos_ram;
-extern UINT8* poolshrk_vpos_ram;