From 984f53ac14cb0124caab39aba3e712dfc49a8ef5 Mon Sep 17 00:00:00 2001 From: md5 Date: Thu, 26 May 2011 11:43:28 +0300 Subject: SWORD25 (LUA): Removed unused code for handling precompiled LUA scipts --- engines/sword25/util/lua/lapi.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'engines/sword25/util/lua/lapi.cpp') 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 } -- cgit v1.2.3