Subversion Repositories pspware

Compare Revisions

Ignore whitespace Rev 233 → Rev 234

/trunk/LuaPlayer/src/luasystem.c
272,6 → 272,14
return 1;
}
 
static int lua_sleep(lua_State *L)
{
if (lua_gettop(L) != 1) return luaL_error(L, "milliseconds expected.");
int milliseconds = luaL_checkint(L, 1);
sceKernelDelayThread(milliseconds * 1000);
return 0;
}
 
static const luaL_reg System_functions[] = {
{"currentDirectory", lua_curdir},
{"listDirectory", lua_dir},
290,6 → 298,7
{"sioInit", lua_sioInit},
{"sioRead", lua_sioRead},
{"sioWrite", lua_sioWrite},
{"sleep", lua_sleep},
{0, 0}
};
void luaSystem_init(lua_State *L) {