horrendous stuff

This commit is contained in:
Flameshadowxeroshin
2011-01-12 21:52:31 -06:00
parent 05bf14b55f
commit 80fd35115a
3 changed files with 24 additions and 7 deletions
+9
View File
@@ -351,6 +351,14 @@ public:
return 1;
}
static int ReadBytes( T* p, lua_State *L )
{
RString string;
p->Read( string, IArg(1) );
lua_pushstring( L, string );
return 1;
}
static int Seek( T* p, lua_State *L )
{
lua_pushinteger( L, p->Seek( IArg(1) ) );
@@ -403,6 +411,7 @@ public:
ADD_METHOD( Close );
ADD_METHOD( Write );
ADD_METHOD( Read );
ADD_METHOD( ReadBytes );
ADD_METHOD( Seek );
ADD_METHOD( Tell );
ADD_METHOD( GetLine );