GetLocalDirectory should not include FILE_IO_PREFIX since that is already included in cIniFile
git-svn-id: http://mc-server.googlecode.com/svn/trunk@851 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
6bc916fc3c
commit
8199aeb18a
@ -68,7 +68,7 @@ bool cPlugin_NewLua::Initialize()
|
|||||||
ManualBindings::Bind( m_LuaState );
|
ManualBindings::Bind( m_LuaState );
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string PluginPath = GetLocalDirectory() + "/";
|
std::string PluginPath = FILE_IO_PREFIX + GetLocalDirectory() + "/";
|
||||||
|
|
||||||
// Load all files for this plugin, and execute them
|
// Load all files for this plugin, and execute them
|
||||||
AStringList Files = GetDirectoryContents(PluginPath.c_str());
|
AStringList Files = GetDirectoryContents(PluginPath.c_str());
|
||||||
@ -133,7 +133,7 @@ bool cPlugin_NewLua::Initialize()
|
|||||||
|
|
||||||
AString cPlugin_NewLua::GetLocalDirectory(void) const
|
AString cPlugin_NewLua::GetLocalDirectory(void) const
|
||||||
{
|
{
|
||||||
return FILE_IO_PREFIX + std::string("Plugins/") + m_Directory;
|
return std::string("Plugins/") + m_Directory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user