From 8b62245dfbcb610fd1aead1889c349afc0db8e97 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 7 Jun 2021 10:11:41 +0100 Subject: Remove LUA_PLUGIN_NAME_VAR_NAME --- src/Bindings/PluginLua.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Bindings/PluginLua.cpp') diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 887e6d699..5e29319ca 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -87,8 +87,6 @@ bool cPluginLua::Load(void) // Inject the identification global variables into the state: lua_pushlightuserdata(m_LuaState, this); lua_setglobal(m_LuaState, LUA_PLUGIN_INSTANCE_VAR_NAME); - lua_pushstring(m_LuaState, GetName().c_str()); - lua_setglobal(m_LuaState, LUA_PLUGIN_NAME_VAR_NAME); // Add the plugin's folder to the package.path and package.cpath variables (#693): m_LuaState.AddPackagePath("path", GetLocalFolder() + "/?.lua"); -- cgit v1.2.3