summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-17 23:36:39 +0100
committermadmaxoft <github@xoft.cz>2014-02-17 23:36:39 +0100
commit1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e (patch)
tree701c0f0cdc3fedf921b98fa32b9672d0d5bf7a1e /src/Bindings/PluginManager.h
parentAdd Lua plugin path to package.path and .cpath. (diff)
downloadcuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar.gz
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar.bz2
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar.lz
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar.xz
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.tar.zst
cuberite-1a26f05ed0e81cb0c2cbd17ee4eb6022f094438e.zip
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r--src/Bindings/PluginManager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index c78bceda1..44bc5a8d7 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -266,6 +266,10 @@ public: // tolua_export
Returns false if plugin not found, and the value that the callback has returned otherwise. */
bool DoWithPlugin(const AString & a_PluginName, cPluginCallback & a_Callback);
+ /** Returns the path where individual plugins' folders are expected.
+ The path doesn't end in a slash. */
+ static AString GetPluginsPath(void) { return FILE_IO_PREFIX + AString("Plugins"); } // tolua_export
+
private:
friend class cRoot;