From fc15ccf645c16bc737e9558f547560cef5119d4e Mon Sep 17 00:00:00 2001 From: tisn05 Date: Tue, 12 Mar 2019 19:38:34 +0800 Subject: [PATCH] Update ExecMgr.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lua51模式添加对exePath的支持,可以自定义Lua5.1的lua.exe路径,方便使用更多的库 --- src/debugger/ExecMgr.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/debugger/ExecMgr.ts b/src/debugger/ExecMgr.ts index 62deddf..597c779 100644 --- a/src/debugger/ExecMgr.ts +++ b/src/debugger/ExecMgr.ts @@ -44,6 +44,9 @@ export class ExecMgr { shell: true }; var luaExePath = path.join(fileInfos[0], "res/debug", process.platform, "lua"); + if(this.args.exePath){ + luaExePath = this.args.exePath; + } var luaStartProc = child_process.exec(luaExePath + ' -e "' + pathStr + '"'); return luaStartProc; } @@ -109,4 +112,4 @@ export class ExecMgr { } return luaStartProc; } -} \ No newline at end of file +}