summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tmc1800.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-01-07 22:20:14 +0100
committer Olivier Galibert <galibert@pobox.com>2018-01-17 16:11:18 +0100
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/includes/tmc1800.h
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff)
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD anymore due to the prototype change. So creating a device then configuring through a fragment doesn't work as-is. The simplest solution is just to add a MCFG_DEVICE_MODIFY at the start of the fragment with the correct tag.
Diffstat (limited to 'src/mame/includes/tmc1800.h')
-rw-r--r--src/mame/includes/tmc1800.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/includes/tmc1800.h b/src/mame/includes/tmc1800.h
index 9ac6ab12f91..846e93cee8f 100644
--- a/src/mame/includes/tmc1800.h
+++ b/src/mame/includes/tmc1800.h
@@ -76,6 +76,8 @@ public:
int m_keylatch; /* key latch */
DECLARE_DRIVER_INIT(tmc1800);
+ void tmc1800(machine_config &config);
+ void tmc1800_video(machine_config &config);
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};
@@ -101,6 +103,8 @@ public:
/* keyboard state */
int m_keylatch;
+ void osc1000b(machine_config &config);
+ void osc1000b_video(machine_config &config);
};
class tmc2000_state : public tmc1800_base_state
@@ -143,6 +147,8 @@ public:
/* keyboard state */
int m_keylatch;
+ void tmc2000(machine_config &config);
+ void tmc2000_video(machine_config &config);
};
class nano_state : public tmc1800_base_state
@@ -181,13 +187,8 @@ public:
/* keyboard state */
int m_keylatch; /* key latch */
+ void nano(machine_config &config);
+ void nano_video(machine_config &config);
};
-/* ---------- defined in video/tmc1800.c ---------- */
-
-MACHINE_CONFIG_EXTERN( tmc1800_video );
-MACHINE_CONFIG_EXTERN( osc1000b_video );
-MACHINE_CONFIG_EXTERN( tmc2000_video );
-MACHINE_CONFIG_EXTERN( nano_video );
-
#endif