diff options
author | chai <chaifix@163.com> | 2018-09-08 15:51:02 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-08 15:51:02 +0800 |
commit | 1cbcb498297dc4de232a514b01790ef561edc041 (patch) | |
tree | bb2de0f9b32cc57b9226ae5427e1296bfde5d15b /src/lua/modules/_embed/path.lua.h | |
parent | feb1013d4304431f6886877e16f942dceb7a8a9a (diff) |
*update
Diffstat (limited to 'src/lua/modules/_embed/path.lua.h')
-rw-r--r-- | src/lua/modules/_embed/path.lua.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lua/modules/_embed/path.lua.h b/src/lua/modules/_embed/path.lua.h new file mode 100644 index 0000000..648adf8 --- /dev/null +++ b/src/lua/modules/_embed/path.lua.h @@ -0,0 +1,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 + +)";
\ No newline at end of file |