aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/lapi.cpp
diff options
context:
space:
mode:
authormd52011-05-26 11:43:28 +0300
committermd52011-05-26 11:46:41 +0300
commit984f53ac14cb0124caab39aba3e712dfc49a8ef5 (patch)
treef1f02784abb4a3b496333a82c96e77514e2999f0 /engines/sword25/util/lua/lapi.cpp
parent7b51caedbaa3594736d8a4f28064de1b65816ca4 (diff)
downloadscummvm-rg350-984f53ac14cb0124caab39aba3e712dfc49a8ef5.tar.gz
scummvm-rg350-984f53ac14cb0124caab39aba3e712dfc49a8ef5.tar.bz2
scummvm-rg350-984f53ac14cb0124caab39aba3e712dfc49a8ef5.zip
SWORD25 (LUA): Removed unused code for handling precompiled LUA scipts
Diffstat (limited to 'engines/sword25/util/lua/lapi.cpp')
-rw-r--r--engines/sword25/util/lua/lapi.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/engines/sword25/util/lua/lapi.cpp b/engines/sword25/util/lua/lapi.cpp
index b1118db368..16f8460e39 100644
--- a/engines/sword25/util/lua/lapi.cpp
+++ b/engines/sword25/util/lua/lapi.cpp
@@ -26,9 +26,8 @@
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
-#include "lundump.h"
#include "lvm.h"
-
+#include "common/textconsole.h"
const char lua_ident[] =
@@ -876,17 +875,8 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
- int status;
- TValue *o;
- lua_lock(L);
- api_checknelems(L, 1);
- o = L->top - 1;
- if (isLfunction(o))
- status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
- else
- status = 1;
- lua_unlock(L);
- return status;
+ error("lua_dump not supported: Handling of precompiled LUA scripts has been removed in ScummVM");
+ return 1; // error
}