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
17 changes: 14 additions & 3 deletions src/HeadlessWrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,25 @@ end
function GetTime()
return 0
end
local function getCwd()
local handle = io.popen("pwd")
if not handle then
return "."
end
local cwd = handle:read("*l")
handle:close()
return cwd or "."
end
local HEADLESS_SCRIPT_PATH = getCwd()
local HEADLESS_RUNTIME_PATH = HEADLESS_SCRIPT_PATH .. "/../runtime"
function GetScriptPath()
return ""
return HEADLESS_SCRIPT_PATH
end
function GetRuntimePath()
return ""
return HEADLESS_RUNTIME_PATH
end
function GetUserPath()
return ""
return HEADLESS_SCRIPT_PATH
end
function MakeDir(path) end
function RemoveDir(path) end
Expand Down