aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/path.lua.h
blob: 648adf8c046b714e5f943f2d58c5f43ad9c9f4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* path.lua */
static const char* path_lua = R"(
jin.path = jin.path or {} 

-- game root directory 
jin._root = nil 

-- return full path of a given path 
function jin.path.full(path)
    local root = jin._dir .. '/' .. jin._argv[2]
    return root .. '/' .. path 
end

)";