From 4b66663afbb13bf8c559d18ea267718646fd9951 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 1 Jul 2022 23:19:10 +1000 Subject: Allow leaving off the src// prefix in SOURCES= --- scripts/genie.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/genie.lua b/scripts/genie.lua index cef42ece7cb..22819137658 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1436,7 +1436,11 @@ if _OPTIONS["SOURCES"] ~= nil then for word in string.gmatch(str, '([^,]+)') do local fullpath = path.join(MAME_DIR, word) if (not os.isfile(fullpath)) and (not os.isdir(fullpath)) then - error("File/directory " .. word .. " does not exist") + word = path.join("src", _OPTIONS["target"], word) + fullpath = path.join(MAME_DIR, word) + if (not os.isfile(fullpath)) and (not os.isdir(fullpath)) then + error("File/directory " .. word .. " does not exist") + end end sourceargs = sourceargs .. " " .. word end -- cgit v1.2.3