aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/lauxlib.cpp
diff options
context:
space:
mode:
authormd52011-05-14 14:57:33 +0300
committermd52011-05-14 14:58:29 +0300
commitcd54d761e10f5c8f24c5508ae22381ed71018abc (patch)
treebb8b5b01631f007993af4bd74d6100299d42206d /engines/sword25/util/lua/lauxlib.cpp
parent8db0bb927421622a5496c78351c1230584a17a97 (diff)
downloadscummvm-rg350-cd54d761e10f5c8f24c5508ae22381ed71018abc.tar.gz
scummvm-rg350-cd54d761e10f5c8f24c5508ae22381ed71018abc.tar.bz2
scummvm-rg350-cd54d761e10f5c8f24c5508ae22381ed71018abc.zip
SWORD25 (LUA): Disabled a lot of non-portable LUA functions
sword25 doesn't use these (thankfully)
Diffstat (limited to 'engines/sword25/util/lua/lauxlib.cpp')
-rw-r--r--engines/sword25/util/lua/lauxlib.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/sword25/util/lua/lauxlib.cpp b/engines/sword25/util/lua/lauxlib.cpp
index 53c0556625..526b1c84ab 100644
--- a/engines/sword25/util/lua/lauxlib.cpp
+++ b/engines/sword25/util/lua/lauxlib.cpp
@@ -6,7 +6,6 @@
#include <ctype.h>
-#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -541,11 +540,7 @@ static const char *getF (lua_State *L, void *ud, size_t *size) {
static int errfile (lua_State *L, const char *what, int fnameindex) {
- const char *serr = strerror(errno);
- const char *filename = lua_tostring(L, fnameindex) + 1;
- lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
- lua_remove(L, fnameindex);
- return LUA_ERRFILE;
+ return luaL_error(L, "LUA function errfile has been removed in ScummVM");
}