diff options
author | chai <chaifix@163.com> | 2018-12-20 19:52:11 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-20 19:52:11 +0800 |
commit | 2ff05671bd7c44d22ffec649b166e48270e412fc (patch) | |
tree | ec089c445c76fe357fd4cfdf78012b5eaa18bab4 /src/libjin-lua/embed/scripts/boot.lua | |
parent | ee8ef0433e36bf354a717bd4af679a0a5af2e6be (diff) |
*修改embed script载入方式
Diffstat (limited to 'src/libjin-lua/embed/scripts/boot.lua')
-rw-r--r-- | src/libjin-lua/embed/scripts/boot.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libjin-lua/embed/scripts/boot.lua b/src/libjin-lua/embed/scripts/boot.lua index 4b97b69..cfcf264 100644 --- a/src/libjin-lua/embed/scripts/boot.lua +++ b/src/libjin-lua/embed/scripts/boot.lua @@ -1,5 +1,4 @@ -/* boot.lua */ -static const char* boot_lua = R"( + local cwd = jin.args['cwd'] or '.' jin.filesystem.init() jin.filesystem.mount(cwd) @@ -135,5 +134,3 @@ jin.audio.destroy() ------------------------------------------------------------------------- jin.core.quit() - -)";
\ No newline at end of file |