diff options
Diffstat (limited to 'crawl-ref/source/clua.h')
-rw-r--r-- | crawl-ref/source/clua.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.h b/crawl-ref/source/clua.h index 6759687494..2fd6bf835e 100644 --- a/crawl-ref/source/clua.h +++ b/crawl-ref/source/clua.h @@ -65,7 +65,8 @@ public: int loadstring(const char *str, const char *context); int execstring(const char *str, const char *context = "init.txt"); - int execfile(const char *filename, bool trusted = false); + int execfile(const char *filename, bool trusted = false, + bool die_on_fail = false); bool callbooleanfn(bool defval, const char *fn, const char *params, ...); bool callfn(const char *fn, int nargs, int nret = 1); @@ -74,7 +75,8 @@ public: bool runhook(const char *hook, const char *params, ...); static int file_write(lua_State *ls); - static int loadfile(lua_State *ls, const char *file, bool trusted = false); + static int loadfile(lua_State *ls, const char *file, + bool trusted = false, bool die_on_fail = false); static bool is_path_safe(std::string file, bool trusted = false); public: |