summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/driver.cpp
diff options
context:
space:
mode:
author MooglyGuy <MooglyGuy@users.noreply.github.com>2018-05-13 15:22:22 +0200
committer Olivier Galibert <galibert@pobox.com>2018-05-13 22:22:22 +0900
commit5cc2319a2e286735981cb62781e65169ff936a52 (patch)
tree9465116c1856e052635215df0b98e400cc8bd020 /src/emu/driver.cpp
parent49803e7418beefbd912d0090884063422888891d (diff)
Removed DRIVER_INIT-related macros, made driver init entry in GAME/COMP/CONS explicit. (#3565)
* -Removed DRIVER_INIT macros in favor of explicitly-named member functions, nw * -Removed DRIVER_INIT_related macros. Made init_ prefix on driver initializers explicit. Renamed init_0 to empty_init. Fixed up GAME/COMP/CONS macro spacing. [Ryan Holtz] * Missed some files, nw * Fix compile, (nw)
Diffstat (limited to 'src/emu/driver.cpp')
-rw-r--r--src/emu/driver.cpp29
1 files changed, 25 insertions, 4 deletions
diff --git a/src/emu/driver.cpp b/src/emu/driver.cpp
index 6481b2e98a1..415872d4989 100644
--- a/src/emu/driver.cpp
+++ b/src/emu/driver.cpp
@@ -22,10 +22,10 @@
//-------------------------------------------------
driver_device::driver_device(const machine_config &mconfig, device_type type, const char *tag)
- : device_t(mconfig, type, tag, nullptr, 0),
- m_system(nullptr),
- m_flip_screen_x(0),
- m_flip_screen_y(0)
+ : device_t(mconfig, type, tag, nullptr, 0)
+ , m_system(nullptr)
+ , m_flip_screen_x(0)
+ , m_flip_screen_y(0)
{
}
@@ -75,6 +75,27 @@ void driver_device::static_set_callback(device_t &device, callback_type type, dr
//-------------------------------------------------
+// empty_init - default implementation which
+// calls driver init
+//-------------------------------------------------
+
+void driver_device::empty_init()
+{
+ driver_init();
+}
+
+
+//-------------------------------------------------
+// driver_init - default implementation which
+// does nothing
+//-------------------------------------------------
+
+void driver_device::driver_init()
+{
+}
+
+
+//-------------------------------------------------
// driver_start - default implementation which
// does nothing
//-------------------------------------------------