mirror of
https://github.com/holub/mame
synced 2025-06-08 13:53:52 +03:00
enable override of resources by osd (nw)
This commit is contained in:
parent
6e0007b83d
commit
be6d03e9c6
@ -65,6 +65,9 @@ function mainProject(_target, _subtarget)
|
|||||||
links{
|
links{
|
||||||
"ocore_" .. _OPTIONS["osd"],
|
"ocore_" .. _OPTIONS["osd"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local override_resources = false;
|
||||||
|
|
||||||
maintargetosdoptions(_target)
|
maintargetosdoptions(_target)
|
||||||
|
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -79,7 +82,7 @@ function mainProject(_target, _subtarget)
|
|||||||
GEN_DIR .. "resource",
|
GEN_DIR .. "resource",
|
||||||
}
|
}
|
||||||
|
|
||||||
if _OPTIONS["targetos"]=="macosx" then
|
if _OPTIONS["targetos"]=="macosx" and (not override_resources) then
|
||||||
linkoptions {
|
linkoptions {
|
||||||
"-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist"
|
"-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist"
|
||||||
}
|
}
|
||||||
@ -92,7 +95,7 @@ function mainProject(_target, _subtarget)
|
|||||||
|
|
||||||
end
|
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"
|
local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc"
|
||||||
if not os.isfile(rcfile) then
|
if not os.isfile(rcfile) then
|
||||||
rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
|
rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
|
||||||
|
Loading…
Reference in New Issue
Block a user