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/hng64.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/hng64.cpp')
-rw-r--r-- | src/mame/drivers/hng64.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mame/drivers/hng64.cpp b/src/mame/drivers/hng64.cpp index 407b6c28596..4093ca30668 100644 --- a/src/mame/drivers/hng64.cpp +++ b/src/mame/drivers/hng64.cpp @@ -1388,12 +1388,12 @@ static void hng64_reorder( uint8_t* gfxregion, size_t gfxregionsize) memcpy(gfxregion, &buffer[0], gfxregionsize); } -DRIVER_INIT_MEMBER(hng64_state,hng64_reorder_gfx) +void hng64_state::init_hng64_reorder_gfx() { hng64_reorder(memregion("scrtile")->base(), memregion("scrtile")->bytes()); } -DRIVER_INIT_MEMBER(hng64_state,hng64) +void hng64_state::init_hng64() { /* 1 meg of virtual address space for the com cpu */ m_com_virtual_mem = std::make_unique<uint8_t[]>(0x100000); @@ -1402,46 +1402,46 @@ DRIVER_INIT_MEMBER(hng64_state,hng64) m_soundram = std::make_unique<uint16_t[]>(0x200000/2); m_soundram2 = std::make_unique<uint16_t[]>(0x200000/2); - DRIVER_INIT_CALL(hng64_reorder_gfx); + init_hng64_reorder_gfx(); } -DRIVER_INIT_MEMBER(hng64_state,hng64_fght) +void hng64_state::init_hng64_fght() { m_no_machine_error_code = 0x01000000; - DRIVER_INIT_CALL(hng64); + init_hng64(); } -DRIVER_INIT_MEMBER(hng64_state,fatfurwa) +void hng64_state::init_fatfurwa() { /* FILE* fp = fopen("/tmp/test.bin", "wb"); fwrite(memregion("verts")->base(), 1, 0x0c00000*2, fp); fclose(fp); */ - DRIVER_INIT_CALL(hng64_fght); + init_hng64_fght(); m_mcu_type = FIGHT_MCU; } -DRIVER_INIT_MEMBER(hng64_state,buriki) +void hng64_state::init_buriki() { - DRIVER_INIT_CALL(hng64_fght); + init_hng64_fght(); m_mcu_type = BURIKI_MCU; } -DRIVER_INIT_MEMBER(hng64_state,ss64) +void hng64_state::init_ss64() { - DRIVER_INIT_CALL(hng64_fght); + init_hng64_fght(); m_mcu_type = SAMSHO_MCU; } -DRIVER_INIT_MEMBER(hng64_state,hng64_race) +void hng64_state::init_hng64_race() { m_no_machine_error_code = 0x02000000; m_mcu_type = RACING_MCU; - DRIVER_INIT_CALL(hng64); + init_hng64(); } -DRIVER_INIT_MEMBER(hng64_state,hng64_shoot) +void hng64_state::init_hng64_shoot() { m_mcu_type = SHOOT_MCU; m_no_machine_error_code = 0x03000000; - DRIVER_INIT_CALL(hng64); + init_hng64(); } void hng64_state::set_irq(uint32_t irq_vector) @@ -2002,13 +2002,13 @@ ROM_START( buriki ) ROM_END /* Bios */ -GAME( 1997, hng64, 0, hng64, hng64, hng64_state, hng64, ROT0, "SNK", "Hyper NeoGeo 64 Bios", MACHINE_NOT_WORKING|MACHINE_NO_SOUND|MACHINE_IS_BIOS_ROOT ) +GAME( 1997, hng64, 0, hng64, hng64, hng64_state, init_hng64, ROT0, "SNK", "Hyper NeoGeo 64 Bios", MACHINE_NOT_WORKING|MACHINE_NO_SOUND|MACHINE_IS_BIOS_ROOT ) /* Games */ -GAME( 1997, roadedge, hng64, hng64, roadedge, hng64_state, hng64_race, ROT0, "SNK", "Roads Edge / Round Trip (rev.B)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 001 */ -GAME( 1998, sams64, hng64, hng64, hng64, hng64_state, ss64, ROT0, "SNK", "Samurai Shodown 64 / Samurai Spirits 64", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 002 */ -GAME( 1998, xrally, hng64, hng64, roadedge, hng64_state, hng64_race, ROT0, "SNK", "Xtreme Rally / Off Beat Racer!", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 003 */ -GAME( 1998, bbust2, hng64, hng64, bbust2, hng64_state, hng64_shoot, ROT0, "SNK", "Beast Busters 2nd Nightmare", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 004 */ -GAME( 1998, sams64_2, hng64, hng64, hng64, hng64_state, ss64, ROT0, "SNK", "Samurai Shodown: Warrior's Rage / Samurai Spirits 2: Asura Zanmaden", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 005 */ -GAME( 1998, fatfurwa, hng64, hng64, hng64, hng64_state, fatfurwa, ROT0, "SNK", "Fatal Fury: Wild Ambition (rev.A)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 006 */ -GAME( 1999, buriki, hng64, hng64, hng64, hng64_state, buriki, ROT0, "SNK", "Buriki One (rev.B)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 007 */ +GAME( 1997, roadedge, hng64, hng64, roadedge, hng64_state, init_hng64_race, ROT0, "SNK", "Roads Edge / Round Trip (rev.B)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 001 */ +GAME( 1998, sams64, hng64, hng64, hng64, hng64_state, init_ss64, ROT0, "SNK", "Samurai Shodown 64 / Samurai Spirits 64", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 002 */ +GAME( 1998, xrally, hng64, hng64, roadedge, hng64_state, init_hng64_race, ROT0, "SNK", "Xtreme Rally / Off Beat Racer!", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 003 */ +GAME( 1998, bbust2, hng64, hng64, bbust2, hng64_state, init_hng64_shoot, ROT0, "SNK", "Beast Busters 2nd Nightmare", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 004 */ +GAME( 1998, sams64_2, hng64, hng64, hng64, hng64_state, init_ss64, ROT0, "SNK", "Samurai Shodown: Warrior's Rage / Samurai Spirits 2: Asura Zanmaden", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 005 */ +GAME( 1998, fatfurwa, hng64, hng64, hng64, hng64_state, init_fatfurwa, ROT0, "SNK", "Fatal Fury: Wild Ambition (rev.A)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 006 */ +GAME( 1999, buriki, hng64, hng64, hng64, hng64_state, init_buriki, ROT0, "SNK", "Buriki One (rev.B)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND ) /* 007 */ |