diff options
author | 2015-04-05 13:07:44 +0200 | |
---|---|---|
committer | 2015-04-05 13:07:44 +0200 | |
commit | be6d03e9c6fb7b673f26c5a75cf35a6bbf0f5f7c (patch) | |
tree | 7e1661718ac39be989f82c97b07996d11784a1a2 /scripts/src/main.lua | |
parent | 6e0007b83d2d4c98b52f4999ce40133c1e10b6fa (diff) |
enable override of resources by osd (nw)
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index d4d523499f6..cee99799e6d 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -65,6 +65,9 @@ function mainProject(_target, _subtarget) links{ "ocore_" .. _OPTIONS["osd"], } + + local override_resources = false; + maintargetosdoptions(_target) includedirs { @@ -79,7 +82,7 @@ function mainProject(_target, _subtarget) GEN_DIR .. "resource", } - if _OPTIONS["targetos"]=="macosx" then + if _OPTIONS["targetos"]=="macosx" and (not override_resources) then linkoptions { "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist" } @@ -92,7 +95,7 @@ function mainProject(_target, _subtarget) end - if _OPTIONS["targetos"]=="windows" then + if _OPTIONS["targetos"]=="windows" and (not override_resources) then local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc" if not os.isfile(rcfile) then rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc" |