summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-02 00:05:32 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-02 00:05:32 -0400
commit20f49a2f4e99225a49d0db97704183c16ce48814 (patch)
tree189889683e67ad770a966ba7c14c28db4c8da116 /scripts/src
parentbafe9c47ab7138f2d2d566578ab4f7801fe0e483 (diff)
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.
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/machine.lua14
1 files changed, 12 insertions, 2 deletions
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