summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/megadrive/rom.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-02-27 22:16:07 +1100
committer Vas Crabb <vas@vastheman.com>2017-02-27 22:57:14 +1100
commit6c23897483a0201dd0b65b450253fd9bf8fb8723 (patch)
tree62a083b4801f63b09bed57ae0c9e8f646aaa3200 /src/devices/bus/megadrive/rom.cpp
parentb07c572f709e95dcd1e2e4b9d4c696e122f67655 (diff)
Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
Diffstat (limited to 'src/devices/bus/megadrive/rom.cpp')
-rw-r--r--src/devices/bus/megadrive/rom.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/devices/bus/megadrive/rom.cpp b/src/devices/bus/megadrive/rom.cpp
index 772a777d965..bb9e7c4fab0 100644
--- a/src/devices/bus/megadrive/rom.cpp
+++ b/src/devices/bus/megadrive/rom.cpp
@@ -24,45 +24,45 @@
//-------------------------------------------------
// BASE CARTS + NVRAM
-const device_type MD_STD_ROM = &device_creator<md_std_rom_device>;
-const device_type MD_ROM_SRAM = &device_creator<md_rom_sram_device>;
-const device_type MD_ROM_FRAM = &device_creator<md_rom_fram_device>;
+const device_type MD_STD_ROM = device_creator<md_std_rom_device>;
+const device_type MD_ROM_SRAM = device_creator<md_rom_sram_device>;
+const device_type MD_ROM_FRAM = device_creator<md_rom_fram_device>;
// BASE CARTS + BANKSWITCH AT RESET
-const device_type MD_ROM_CM2IN1 = &device_creator<md_rom_cm2in1_device>;
+const device_type MD_ROM_CM2IN1 = device_creator<md_rom_cm2in1_device>;
// BASE CARTS + PROTECTION / BANKSWITCH
-const device_type MD_ROM_SSF2 = &device_creator<md_rom_ssf2_device>;
-const device_type MD_ROM_BUGSLIFE = &device_creator<md_rom_bugslife_device>;
-const device_type MD_ROM_SMOUSE = &device_creator<md_rom_smouse_device>;
-const device_type MD_ROM_SMW64 = &device_creator<md_rom_smw64_device>;
-const device_type MD_ROM_SMB = &device_creator<md_rom_smb_device>;
-const device_type MD_ROM_SMB2 = &device_creator<md_rom_smb2_device>;
-const device_type MD_ROM_SBUBL = &device_creator<md_rom_sbubl_device>;
-const device_type MD_ROM_RX3 = &device_creator<md_rom_rx3_device>;
-const device_type MD_ROM_MJLOV = &device_creator<md_rom_mjlov_device>;
-const device_type MD_ROM_CJMJCLUB = &device_creator<md_rom_cjmjclub_device>;
-const device_type MD_ROM_KOF98 = &device_creator<md_rom_kof98_device>;
-const device_type MD_ROM_KOF99 = &device_creator<md_rom_kof99_device>;
-const device_type MD_ROM_SOULB = &device_creator<md_rom_soulb_device>;
-const device_type MD_ROM_CHINF3 = &device_creator<md_rom_chinf3_device>;
-const device_type MD_ROM_16MJ2 = &device_creator<md_rom_16mj2_device>;
-const device_type MD_ROM_ELFWOR = &device_creator<md_rom_elfwor_device>;
-const device_type MD_ROM_YASECH = &device_creator<md_rom_yasech_device>;
-const device_type MD_ROM_LION2 = &device_creator<md_rom_lion2_device>;
-const device_type MD_ROM_LION3 = &device_creator<md_rom_lion3_device>;
-const device_type MD_ROM_MCPIR = &device_creator<md_rom_mcpirate_device>;
-const device_type MD_ROM_POKEA = &device_creator<md_rom_pokea_device>;
-const device_type MD_ROM_POKESTAD = &device_creator<md_rom_pokestad_device>;
-const device_type MD_ROM_REALTEC = &device_creator<md_rom_realtec_device>;
-const device_type MD_ROM_REDCL = &device_creator<md_rom_redcl_device>;
-const device_type MD_ROM_SQUIR = &device_creator<md_rom_squir_device>;
-const device_type MD_ROM_TEKKENSP = &device_creator<md_rom_tekkensp_device>;
-const device_type MD_ROM_TOPF = &device_creator<md_rom_topf_device>;
-const device_type MD_ROM_RADICA = &device_creator<md_rom_radica_device>;
-const device_type MD_ROM_BEGGARP = &device_creator<md_rom_beggarp_device>;
-const device_type MD_ROM_WUKONG = &device_creator<md_rom_wukong_device>;
-const device_type MD_ROM_STARODYS = &device_creator<md_rom_starodys_device>;
+const device_type MD_ROM_SSF2 = device_creator<md_rom_ssf2_device>;
+const device_type MD_ROM_BUGSLIFE = device_creator<md_rom_bugslife_device>;
+const device_type MD_ROM_SMOUSE = device_creator<md_rom_smouse_device>;
+const device_type MD_ROM_SMW64 = device_creator<md_rom_smw64_device>;
+const device_type MD_ROM_SMB = device_creator<md_rom_smb_device>;
+const device_type MD_ROM_SMB2 = device_creator<md_rom_smb2_device>;
+const device_type MD_ROM_SBUBL = device_creator<md_rom_sbubl_device>;
+const device_type MD_ROM_RX3 = device_creator<md_rom_rx3_device>;
+const device_type MD_ROM_MJLOV = device_creator<md_rom_mjlov_device>;
+const device_type MD_ROM_CJMJCLUB = device_creator<md_rom_cjmjclub_device>;
+const device_type MD_ROM_KOF98 = device_creator<md_rom_kof98_device>;
+const device_type MD_ROM_KOF99 = device_creator<md_rom_kof99_device>;
+const device_type MD_ROM_SOULB = device_creator<md_rom_soulb_device>;
+const device_type MD_ROM_CHINF3 = device_creator<md_rom_chinf3_device>;
+const device_type MD_ROM_16MJ2 = device_creator<md_rom_16mj2_device>;
+const device_type MD_ROM_ELFWOR = device_creator<md_rom_elfwor_device>;
+const device_type MD_ROM_YASECH = device_creator<md_rom_yasech_device>;
+const device_type MD_ROM_LION2 = device_creator<md_rom_lion2_device>;
+const device_type MD_ROM_LION3 = device_creator<md_rom_lion3_device>;
+const device_type MD_ROM_MCPIR = device_creator<md_rom_mcpirate_device>;
+const device_type MD_ROM_POKEA = device_creator<md_rom_pokea_device>;
+const device_type MD_ROM_POKESTAD = device_creator<md_rom_pokestad_device>;
+const device_type MD_ROM_REALTEC = device_creator<md_rom_realtec_device>;
+const device_type MD_ROM_REDCL = device_creator<md_rom_redcl_device>;
+const device_type MD_ROM_SQUIR = device_creator<md_rom_squir_device>;
+const device_type MD_ROM_TEKKENSP = device_creator<md_rom_tekkensp_device>;
+const device_type MD_ROM_TOPF = device_creator<md_rom_topf_device>;
+const device_type MD_ROM_RADICA = device_creator<md_rom_radica_device>;
+const device_type MD_ROM_BEGGARP = device_creator<md_rom_beggarp_device>;
+const device_type MD_ROM_WUKONG = device_creator<md_rom_wukong_device>;
+const device_type MD_ROM_STARODYS = device_creator<md_rom_starodys_device>;
md_std_rom_device::md_std_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)