diff options
author | chai <chaifix@163.com> | 2018-11-03 21:11:41 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-03 21:11:41 +0800 |
commit | 281f8feabffd69928a0a0f08aa31f70b36f5e6bd (patch) | |
tree | a22413447a5480a5dffe625c677ad7c4140350c5 /src/lua/embed/boot.lua.h | |
parent | f6ef5d6c0188e7dc6b39803ca37fe736f0eb3962 (diff) |
*增加游戏目录选择
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r-- | src/lua/embed/boot.lua.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h index 212a1e5..2369b0f 100644 --- a/src/lua/embed/boot.lua.h +++ b/src/lua/embed/boot.lua.h @@ -1,8 +1,8 @@ /* boot.lua */ static const char* boot_lua = R"( -jin.args[2] = jin.args[2] or '.' +local cwd = jin.args['cwd'] or '.' jin.filesystem.init() -jin.filesystem.mount(jin.args[2]) +jin.filesystem.mount(cwd) ------------------------------------------------------------------------- -- Config game |