diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 22:49:29 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 22:49:29 +0200 |
commit | 6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9 (patch) | |
tree | 621f7959a61f9b054876e87613b0a56583e15813 /source/cPlugin_NewLua.cpp | |
parent | Another fix for the case-sensitiveness. WTF, STL allows different signatures for Debug and Release builds? (diff) | |
download | cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar.gz cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar.bz2 cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar.lz cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar.xz cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.tar.zst cuberite-6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9.zip |
Diffstat (limited to 'source/cPlugin_NewLua.cpp')
-rw-r--r-- | source/cPlugin_NewLua.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/cPlugin_NewLua.cpp b/source/cPlugin_NewLua.cpp index 1b9e8cdbb..05b59b415 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 = FILE_IO_PREFIX + std::string("Plugins/") + m_Directory + "/"; + std::string PluginPath = GetLocalDirectory() + "/"; // Load all files for this plugin, and execute them AStringList Files = GetDirectoryContents(PluginPath.c_str()); @@ -131,6 +131,15 @@ bool cPlugin_NewLua::Initialize() +AString cPlugin_NewLua::GetLocalDirectory(void) const +{ + return FILE_IO_PREFIX + std::string("Plugins/") + m_Directory; +} + + + + + void cPlugin_NewLua::OnDisable() { cCSLock Lock( m_CriticalSection ); |