summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/copsnrob.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-04-15 05:44:22 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-04-15 05:44:22 +0000
commit3c0e32112372e880b70e52fbb5ce14b5eef40f1b (patch)
tree0e136f7f1d4f37e9af39f25c6744c497f264a733 /src/mame/includes/copsnrob.h
parent933e54c208155a783f26ab6c0ab9fe788e2595d2 (diff)
Remove AM_BASE in favor of AM_SHARED + required_shared_ptr.
This update passes validity checks but will certainly have a number of drivers failing at startup because all pointers are defaulted to required by the automated scripts used. Will fix problems once we get a regression run to find out which drivers need attention.
Diffstat (limited to 'src/mame/includes/copsnrob.h')
-rw-r--r--src/mame/includes/copsnrob.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/mame/includes/copsnrob.h b/src/mame/includes/copsnrob.h
index 49be9d81ad2..fb44f9f021d 100644
--- a/src/mame/includes/copsnrob.h
+++ b/src/mame/includes/copsnrob.h
@@ -11,16 +11,21 @@ class copsnrob_state : public driver_device
{
public:
copsnrob_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) { }
+ : driver_device(mconfig, type, tag) ,
+ m_trucky(*this, "trucky"),
+ m_truckram(*this, "truckram"),
+ m_bulletsram(*this, "bulletsram"),
+ m_carimage(*this, "carimage"),
+ m_cary(*this, "cary"),
+ m_videoram(*this, "videoram"){ }
/* memory pointers */
- UINT8 * m_videoram;
- UINT8 * m_trucky;
- UINT8 * m_truckram;
- UINT8 * m_bulletsram;
- UINT8 * m_cary;
- UINT8 * m_carimage;
- size_t m_videoram_size;
+ required_shared_ptr<UINT8> m_trucky;
+ required_shared_ptr<UINT8> m_truckram;
+ required_shared_ptr<UINT8> m_bulletsram;
+ required_shared_ptr<UINT8> m_carimage;
+ required_shared_ptr<UINT8> m_cary;
+ required_shared_ptr<UINT8> m_videoram;
/* misc */
UINT8 m_misc;