From 65bafdc682db46f0f115374ad39f1fbc348832ac Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 20 Aug 2018 11:51:32 +0800 Subject: *update --- src/lua/modules/embed/path.lua.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lua/modules/embed/path.lua.h (limited to 'src/lua/modules/embed/path.lua.h') 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 -- cgit v1.1-26-g67d0