Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ rule("commonlib.papyrus", function()
return
end

local args = { tempdir, format("--game=%s", target:data("commonlib.papyrus.game")), "--recurse", "--ignorecwd" }
local args = { rootdir, format("--game=%s", target:data("commonlib.papyrus.game")), "--recurse", "--ignorecwd" }
local imports = { rootdir }
if data.options.imports then
if type(data.options.imports) ~= "table" then
Expand Down Expand Up @@ -446,7 +446,7 @@ rule("commonlib.papyrus", function()
table.append(args, format("--flags=%s", target:data("commonlib.papyrus.flags")))

local scriptdir = path.absolute(target:targetdir())
table.append(args, format("--output=%s", scriptdir))
table.append(args, format("--output=%s", path.join(scriptdir, "Scripts")))

if data.options.optimize then table.append(args, "--optimize") end
if data.options.release then table.append(args, "--release") end
Expand Down