1
0

Remove LUA_PLUGIN_NAME_VAR_NAME

This commit is contained in:
Tiger Wang 2021-06-07 10:11:41 +01:00
parent ddf352e1e3
commit 8b62245dfb
2 changed files with 0 additions and 3 deletions

View File

@ -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");

View File

@ -13,7 +13,6 @@
#include "LuaState.h"
// Names for the global variables through which the plugin is identified in its LuaState
#define LUA_PLUGIN_NAME_VAR_NAME "_CuberiteInternal_PluginName"
#define LUA_PLUGIN_INSTANCE_VAR_NAME "_CuberiteInternal_PluginInstance"