diff options
author | chai <chaifix@163.com> | 2021-10-19 09:46:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-19 09:46:50 +0800 |
commit | 52049bfada8d51c4320a203e487af971447b561e (patch) | |
tree | 267592f879e464452d95d89250dc21a5d50da5be /Editor | |
parent | fcf4863bcd44ef3fa39ff097f5e058267deb9819 (diff) |
*misc
Diffstat (limited to 'Editor')
-rw-r--r-- | Editor/EditorApplication.h | 1 | ||||
-rw-r--r-- | Editor/EditorMain.cpp | 1 | ||||
-rw-r--r-- | Editor/Scripting/Editor/EditorApplication.bind.cpp | 10 |
3 files changed, 2 insertions, 10 deletions
diff --git a/Editor/EditorApplication.h b/Editor/EditorApplication.h index eb08c46..35c427c 100644 --- a/Editor/EditorApplication.h +++ b/Editor/EditorApplication.h @@ -24,7 +24,6 @@ private : LUA_BIND_DECL_METHOD(_New);
LUA_BIND_DECL_METHOD(_SetMainWindow);
- LUA_BIND_DECL_METHOD(_SetupMenu);
LUA_BIND_DECL_METHOD(_PullMessage);
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 1fdf726..88f7513 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -28,7 +28,6 @@ void InitLuaState() // https://stackoverflow.com/questions/21495901/loadlibrarya-and-relative-path/21495971
// ll_load装载dll,路径需要设置搜索路径
- //log_info(Win::GetCurrentWorkingDirectory());
std::string workingDir = Win::GetCurrentWorkingDirectory();
Win::SetDllSearchDirectory(workingDir);
diff --git a/Editor/Scripting/Editor/EditorApplication.bind.cpp b/Editor/Scripting/Editor/EditorApplication.bind.cpp index 82abdd5..33d73f7 100644 --- a/Editor/Scripting/Editor/EditorApplication.bind.cpp +++ b/Editor/Scripting/Editor/EditorApplication.bind.cpp @@ -5,7 +5,6 @@ LUA_BIND_REGISTRY(EditorApplication) LUA_BIND_REGISTER_METHODS(state, {"New", EditorApplication::_New}, { "SetMainWindow", _SetMainWindow }, - { "SetupMenu", _SetupMenu }, { "PullMessage", _PullMessage } ); } @@ -36,12 +35,7 @@ LUA_BIND_IMPL_METHOD(EditorApplication, _SetMainWindow) ContainnerWindow* wnd = state.GetUserdata<ContainnerWindow>(2); self->SetMainWindow(wnd); - return 0; -} -LUA_BIND_IMPL_METHOD(EditorApplication, _SetupMenu) -{ - LUA_BIND_PREPARE(L, EditorApplication); - MenuManager::Instance()->Init();
+ MenuManager::Instance()->Init();
return 0; -}
\ No newline at end of file +} |