summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-17 23:12:46 +0100
committermadmaxoft <github@xoft.cz>2014-02-17 23:12:46 +0100
commit865ae82114c7c567f3d2580f648979ad5101e0db (patch)
tree3a21dc6321acd67d1f478576fb7decb37bf6b514 /src/Bindings/LuaState.h
parentMerge pull request #690 from tonibm19/master (diff)
downloadcuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar.gz
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar.bz2
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar.lz
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar.xz
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.tar.zst
cuberite-865ae82114c7c567f3d2580f648979ad5101e0db.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index b9bf10142..dcb660c3f 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -154,6 +154,9 @@ public:
/** Returns true if the m_LuaState is valid */
bool IsValid(void) const { return (m_LuaState != NULL); }
+ /** Adds the specified path to package.<a_PathVariable> */
+ void AddPackagePath(const AString & a_PathVariable, const AString & a_Path);
+
/** Loads the specified file
Returns false and logs a warning to the console if not successful (but the LuaState is kept open).
m_SubsystemName is displayed in the warning log message.