summaryrefslogtreecommitdiffstats
path: root/src/Bindings/Plugin.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-08 12:17:54 +0100
committermadmaxoft <github@xoft.cz>2013-12-08 12:17:54 +0100
commit044fd237b60b30f2a422b9efd04d20badf61da79 (patch)
treeedbbb450e57100e7b23b91f4a12a10802d20e6d0 /src/Bindings/Plugin.cpp
parentIgnoring Gallery plugin settings. (diff)
downloadcuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar.gz
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar.bz2
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar.lz
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar.xz
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.tar.zst
cuberite-044fd237b60b30f2a422b9efd04d20badf61da79.zip
Diffstat (limited to 'src/Bindings/Plugin.cpp')
-rw-r--r--src/Bindings/Plugin.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Bindings/Plugin.cpp b/src/Bindings/Plugin.cpp
new file mode 100644
index 000000000..98ccfb88c
--- /dev/null
+++ b/src/Bindings/Plugin.cpp
@@ -0,0 +1,38 @@
+
+#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;
+}
+
+
+
+