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 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'scripts/src/machine.lua') 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 -- cgit v1.2.3