diff options
author | chai <chaifix@163.com> | 2021-10-19 19:52:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-19 19:52:29 +0800 |
commit | 922495098aea1ca569369da664dddb9780d07768 (patch) | |
tree | df775754873304358369fba6c0f8f2dc36177b48 /Editor/EditorMain.cpp | |
parent | 52049bfada8d51c4320a203e487af971447b561e (diff) |
*misc
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 88f7513..182a2c4 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -31,11 +31,8 @@ void InitLuaState() std::string workingDir = Win::GetCurrentWorkingDirectory();
Win::SetDllSearchDirectory(workingDir);
- // set search path
- state.DoString(R"(package.path=package.path .. ";" .. ".\\Libraries\\?.lua")");
- state.DoString(R"(package.cpath=package.cpath .. ";" .. ".\\Libraries\\?.dll")");
-
- state.DoFile(".\\Scripts\\EditorApplication.lua", ErrorHandle);
+ state.DoFile("./boot.lua", ErrorHandle);
+ state.DoFile("./Scripts/EditorApplication.lua", ErrorHandle);
}
#ifdef GAMELAB_DEBUG
|