diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 22:51:47 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 22:51:47 +0200 |
commit | 8199aeb18ac02a2938fa9c2f1a14f85d9781f142 (patch) | |
tree | af2c1475c2ef00a52b78b1a7fa11b0a1048eb0ac /source/cPlugin_NewLua.cpp | |
parent | Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder. (diff) | |
download | cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar.gz cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar.bz2 cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar.lz cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar.xz cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.tar.zst cuberite-8199aeb18ac02a2938fa9c2f1a14f85d9781f142.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPlugin_NewLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cPlugin_NewLua.cpp b/source/cPlugin_NewLua.cpp index 05b59b415..bb7878f60 100644 --- a/source/cPlugin_NewLua.cpp +++ b/source/cPlugin_NewLua.cpp @@ -68,7 +68,7 @@ bool cPlugin_NewLua::Initialize() ManualBindings::Bind( m_LuaState ); } - std::string PluginPath = GetLocalDirectory() + "/"; + std::string PluginPath = FILE_IO_PREFIX + GetLocalDirectory() + "/"; // Load all files for this plugin, and execute them AStringList Files = GetDirectoryContents(PluginPath.c_str()); @@ -133,7 +133,7 @@ bool cPlugin_NewLua::Initialize() AString cPlugin_NewLua::GetLocalDirectory(void) const { - return FILE_IO_PREFIX + std::string("Plugins/") + m_Directory; + return std::string("Plugins/") + m_Directory; } |