Remove LUA_PLUGIN_NAME_VAR_NAME
This commit is contained in:
parent
ddf352e1e3
commit
8b62245dfb
@ -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");
|
||||
|
@ -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"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user