mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +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
|
for word in string.gmatch(str, '([^,]+)') do
|
||||||
local fullpath = path.join(MAME_DIR, word)
|
local fullpath = path.join(MAME_DIR, word)
|
||||||
if (not os.isfile(fullpath)) and (not os.isdir(fullpath)) then
|
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
|
end
|
||||||
sourceargs = sourceargs .. " " .. word
|
sourceargs = sourceargs .. " " .. word
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user