From 20f49a2f4e99225a49d0db97704183c16ce48814 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 2 May 2018 00:05:32 -0400 Subject: Rename machine/latch.* to machine/output_latch.* (nw) - Use device_resolve_objects to resolve callbacks in output_latch_device (nw) Note that this renaming is not just for human convenience; genie seems to get confused by modifications to a header called latch.h and decides to recompile everything involving gen_latch.h as well. --- scripts/src/machine.lua | 14 ++++++++++++-- scripts/target/mame/arcade.lua | 1 + scripts/target/mame/mess.lua | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/src/machine.lua b/scripts/src/machine.lua index 7b52ddf58f3..4452a27d0df 100644 --- a/scripts/src/machine.lua +++ b/scripts/src/machine.lua @@ -21,8 +21,6 @@ files { MAME_DIR .. "src/devices/machine/keyboard.ipp", MAME_DIR .. "src/devices/machine/laserdsc.cpp", MAME_DIR .. "src/devices/machine/laserdsc.h", - MAME_DIR .. "src/devices/machine/latch.cpp", - MAME_DIR .. "src/devices/machine/latch.h", MAME_DIR .. "src/devices/machine/nvram.cpp", MAME_DIR .. "src/devices/machine/nvram.h", MAME_DIR .. "src/devices/machine/ram.cpp", @@ -3506,3 +3504,15 @@ if (MACHINES["GEN_FIFO"]~=null) then MAME_DIR .. "src/devices/machine/gen_fifo.h", } end + +--------------------------------------------------- +-- +--@src/devices/machine/output_latch.h,MACHINES["OUTPUT_LATCH"] = true +--------------------------------------------------- + +if (MACHINES["OUTPUT_LATCH"]~=null) then + files { + MAME_DIR .. "src/devices/machine/output_latch.cpp", + MAME_DIR .. "src/devices/machine/output_latch.h", + } +end diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua index bc732383546..7337cd81adb 100644 --- a/scripts/target/mame/arcade.lua +++ b/scripts/target/mame/arcade.lua @@ -522,6 +522,7 @@ MACHINES["NETLIST"] = true MACHINES["NMC9306"] = true --MACHINES["NSC810"] = true MACHINES["NSCSI"] = true +MACHINES["OUTPUT_LATCH"] = true MACHINES["PC_FDC"] = true MACHINES["PC_LPT"] = true --MACHINES["PCCARD"] = true diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index 659e8519830..6c01dc9d4c0 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -514,6 +514,7 @@ MACHINES["NMC9306"] = true MACHINES["NSC810"] = true MACHINES["NSCSI"] = true MACHINES["OMTI5100"] = true +MACHINES["OUTPUT_LATCH"] = true MACHINES["PC_FDC"] = true MACHINES["PC_LPT"] = true MACHINES["PCCARD"] = true -- cgit v1.2.3