mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Allow leaving off the src/<target>/ prefix in SOURCES=
This commit is contained in:
parent
f04d9d605c
commit
4b66663afb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user