diff options
author | chai <chaifix@163.com> | 2018-12-20 20:17:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-20 20:17:32 +0800 |
commit | c1e2a3e47d57ea44a246b2beb78c13ea2669f227 (patch) | |
tree | 2d63760d83197cd0c66cbe38d0e034134616c3bb /src/libjin-lua/embed/scripts/path | |
parent | 2ff05671bd7c44d22ffec649b166e48270e412fc (diff) |
*修改文件目录
Diffstat (limited to 'src/libjin-lua/embed/scripts/path')
-rw-r--r-- | src/libjin-lua/embed/scripts/path/path.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libjin-lua/embed/scripts/path/path.lua b/src/libjin-lua/embed/scripts/path/path.lua new file mode 100644 index 0000000..015f602 --- /dev/null +++ b/src/libjin-lua/embed/scripts/path/path.lua @@ -0,0 +1,13 @@ + +jin.path = jin.path or {} + +local jp = jin.path + +-- Game root directory +jin._root = nil + +-- Get full path of a given path +function jin.path.full(path) + local root = jin._dir .. '/' .. jin._argv[2] + return root .. '/' .. path +end |