mirror of
https://github.com/libretro/retroluxury.git
synced 2024-11-23 07:39:47 +00:00
removed rl module from the global table
This commit is contained in:
parent
2e451c346f
commit
0f143559f8
18
core/bind.c
18
core/bind.c
@ -1016,6 +1016,12 @@ static int l_loadMap( lua_State* L )
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static int openf( lua_State* L )
|
||||
{
|
||||
lua_newtable( L );
|
||||
return 1;
|
||||
}
|
||||
|
||||
void register_rl( lua_State* L, void* pack, retro_input_state_t* input_state_cb, retro_video_refresh_t* video_cb )
|
||||
{
|
||||
static const luaL_Reg statics[] =
|
||||
@ -1040,20 +1046,14 @@ void register_rl( lua_State* L, void* pack, retro_input_state_t* input_state_cb,
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
// --
|
||||
int top = lua_gettop( L );
|
||||
|
||||
lua_newtable( L );
|
||||
|
||||
// module
|
||||
luaL_requiref( L, "rl", openf, 0 );
|
||||
|
||||
lua_pushlightuserdata( L, pack );
|
||||
lua_pushlightuserdata( L, input_state_cb );
|
||||
lua_pushlightuserdata( L, video_cb );
|
||||
luaL_setfuncs( L, statics, 3 );
|
||||
|
||||
// module
|
||||
|
||||
lua_setglobal( L, "rl" );
|
||||
|
||||
// --
|
||||
lua_settop( L, top );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user