1
0
cuberite-2a/source/Plugin.cpp
madmaxoft 66da02519a Added cPlugin:GetLocalFolder() API function.
This supersedes the cPlugin:GetLocalDirectory() function.
2013-09-18 22:15:12 +02:00

39 lines
460 B
C++

#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Plugin.h"
cPlugin::cPlugin(const AString & a_PluginDirectory) :
m_Language(E_CPP),
m_Name(a_PluginDirectory),
m_Version(0),
m_Directory(a_PluginDirectory)
{
}
cPlugin::~cPlugin()
{
LOGD("Destroying plugin \"%s\".", m_Name.c_str());
}
AString cPlugin::GetLocalFolder(void) const
{
return std::string("Plugins/") + m_Directory;
}