summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-05-07 21:14:00 +0200
committerGitHub <noreply@github.com>2020-05-07 21:14:00 +0200
commitc710f6a4ea2231051a9e6406128d6e06af86e58e (patch)
treed86451d18434a1e02d8753ee2486d11068f69494 /src/Bindings/PluginLua.cpp
parentRemove coverity_scan branch reference (diff)
downloadcuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.gz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.bz2
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.lz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.xz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.zst
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginLua.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index fac07f00b..13e2084ca 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -94,18 +94,18 @@ bool cPluginLua::Load(void)
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", FILE_IO_PREFIX + GetLocalFolder() + "/?.lua");
+ m_LuaState.AddPackagePath("path", GetLocalFolder() + "/?.lua");
#ifdef _WIN32
m_LuaState.AddPackagePath("cpath", GetLocalFolder() + "\\?.dll");
#else
- m_LuaState.AddPackagePath("cpath", FILE_IO_PREFIX + GetLocalFolder() + "/?.so");
+ m_LuaState.AddPackagePath("cpath", GetLocalFolder() + "/?.so");
#endif
tolua_pushusertype(m_LuaState, this, "cPluginLua");
lua_setglobal(m_LuaState, "g_Plugin");
}
- std::string PluginPath = FILE_IO_PREFIX + GetLocalFolder() + "/";
+ std::string PluginPath = GetLocalFolder() + "/";
// List all Lua files for this plugin. Info.lua has a special handling - make it the last to load:
AStringVector Files = cFile::GetFolderContents(PluginPath.c_str());