diff options
author | chai <chaifix@163.com> | 2018-08-20 11:51:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-20 11:51:32 +0800 |
commit | 65bafdc682db46f0f115374ad39f1fbc348832ac (patch) | |
tree | 7862548cdf01060e89a45c9817afc6e5d263acd7 /src/lua/modules/embed/path.lua.h | |
parent | 9593ae6ecdfcfb876fa7953f25e19f0a97e1453a (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 |