diff options
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 |
commit | 5cc2319a2e286735981cb62781e65169ff936a52 (patch) | |
tree | 9465116c1856e052635215df0b98e400cc8bd020 /src/mame/drivers/px4.cpp | |
parent | 49803e7418beefbd912d0090884063422888891d (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/mame/drivers/px4.cpp')
-rw-r--r-- | src/mame/drivers/px4.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/px4.cpp b/src/mame/drivers/px4.cpp index 308a8749698..4d722a33246 100644 --- a/src/mame/drivers/px4.cpp +++ b/src/mame/drivers/px4.cpp @@ -82,7 +82,7 @@ public: m_centronics_busy(0), m_centronics_perror(0) { } - DECLARE_DRIVER_INIT( px4 ); + void init_px4(); DECLARE_PALETTE_INIT( px4 ); uint32_t screen_update_px4(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -260,7 +260,7 @@ public: m_ramdisk(nullptr) { } - DECLARE_DRIVER_INIT( px4p ); + void init_px4p(); DECLARE_PALETTE_INIT( px4p ); @@ -1214,16 +1214,16 @@ uint32_t px4_state::screen_update_px4(screen_device &screen, bitmap_ind16 &bitma // DRIVER INIT //************************************************************************** -DRIVER_INIT_MEMBER( px4_state, px4 ) +void px4_state::init_px4() { // map os rom and last half of memory membank("bank1")->set_base(memregion("os")->base()); membank("bank2")->set_base(m_ram->pointer() + 0x8000); } -DRIVER_INIT_MEMBER( px4p_state, px4p ) +void px4p_state::init_px4p() { - DRIVER_INIT_CALL(px4); + init_px4(); // reserve memory for external ram-disk m_ramdisk = std::make_unique<uint8_t[]>(0x20000); @@ -1593,6 +1593,6 @@ ROM_END // GAME DRIVERS //************************************************************************** -// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS -COMP( 1985, px4, 0, 0, px4, px4_h450a, px4_state, px4, "Epson", "PX-4", 0 ) -COMP( 1985, px4p, px4, 0, px4p, px4_h450a, px4p_state, px4p, "Epson", "PX-4+", 0 ) +// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS +COMP( 1985, px4, 0, 0, px4, px4_h450a, px4_state, init_px4, "Epson", "PX-4", 0 ) +COMP( 1985, px4p, px4, 0, px4p, px4_h450a, px4p_state, init_px4p, "Epson", "PX-4+", 0 ) |