diff options
Diffstat (limited to 'lib/luacd.cpp')
-rw-r--r-- | lib/luacd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/luacd.cpp b/lib/luacd.cpp index cab50b2..0e10af1 100644 --- a/lib/luacd.cpp +++ b/lib/luacd.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: luacd.cpp,v 1.5 2003-12-11 16:53:43 pixel Exp $ */ +/* $Id: luacd.cpp,v 1.6 2003-12-12 12:45:20 pixel Exp $ */ #include "luacd.h" @@ -480,7 +480,7 @@ int sLua_cdfile::cdfile_proceed_statics(Lua * L, int n, int caller) { switch(caller) { case CDFILE_NEWCDFILE: cd = (cdutils *) LuaObject::getme(L, 1); - if (L->islightuserdata(2)) { + if (L->istable(2)) { if (n <= 3) { dir = (cdutils::DirEntry *) LuaObject::getme(L, 2); if (n == 3) @@ -504,7 +504,7 @@ int sLua_cdfile::cdfile_proceed_statics(Lua * L, int n, int caller) { invalid = true; } if (invalid) { - L->error("Invalid arguments to constructor of cdutils"); + L->error("Invalid arguments to constructor of cdfile"); } else { Luacdfile luacdf(cdf); luacdf.pushdestruct(L); @@ -1354,7 +1354,7 @@ struct lua_functypes_t isobuilder_methods[] = { { ISOBUILDER_CLEAREOF, "clearEOF", 0, 0, 0 }, { ISOBUILDER_SETBASICS, "setbasics", 1, 5, {LUA_OBJECT, LUA_NUMBER, LUA_NUMBER, LUA_NUMBER, LUA_NUMBER} }, { ISOBUILDER_CREATEDIR, "createdir", 2, 5, {LUA_OBJECT, LUA_STRING, LUA_NUMBER, LUA_OBJECT, LUA_NUMBER} }, - { ISOBUILDER_CREATEFILE, "createfile", 3, 5, {LUA_OBJECT, LUA_OBJECT, LUA_STRING, LUA_OBJECT, LUA_NUMBER} }, + { ISOBUILDER_CREATEFILE, "createfile", 3, 5, {LUA_OBJECT, LUA_STRING, LUA_OBJECT, LUA_OBJECT, LUA_NUMBER} }, { ISOBUILDER_COPYDIR, "copydir", 3, 4, {LUA_OBJECT, LUA_OBJECT, LUA_OBJECT, LUA_NUMBER} }, { ISOBUILDER_CLOSE, "close", 0, 2, {LUA_OBJECT, LUA_NUMBER} }, { -1, 0, 0, 0, 0 } @@ -1547,8 +1547,8 @@ int sLua_isobuilder::isobuilder_proceed(Lua * L, int n, isobuilder * iso, int ca break; case ISOBUILDER_CREATEFILE: dirt = (DirTree *) LuaObject::getme(L, 2); - h = (Handle *) LuaObject::getme(L, 3); - name = L->tostring(4); + name = L->tostring(3); + h = (Handle *) LuaObject::getme(L, 4); if (n >= 4) dire = (direntry *) LuaObject::getme(L, 5); if (n >= 5) |