lua cleanup
This commit is contained in:
@@ -134,7 +134,7 @@ public:
|
|||||||
if( MESSAGEMAN )
|
if( MESSAGEMAN )
|
||||||
{
|
{
|
||||||
lua_pushstring(L, "MESSAGEMAN");
|
lua_pushstring(L, "MESSAGEMAN");
|
||||||
MESSAGEMAN->PushSelf( LUA->L );
|
MESSAGEMAN->PushSelf( L );
|
||||||
lua_settable(L, LUA_GLOBALSINDEX);
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ public:
|
|||||||
if( NOTESKIN )
|
if( NOTESKIN )
|
||||||
{
|
{
|
||||||
lua_pushstring(L, "NOTESKIN");
|
lua_pushstring(L, "NOTESKIN");
|
||||||
NOTESKIN->PushSelf( LUA->L );
|
NOTESKIN->PushSelf( L );
|
||||||
lua_settable(L, LUA_GLOBALSINDEX);
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public:
|
|||||||
if( INPUTMAN )
|
if( INPUTMAN )
|
||||||
{
|
{
|
||||||
lua_pushstring(L, "INPUTMAN");
|
lua_pushstring(L, "INPUTMAN");
|
||||||
INPUTMAN->PushSelf( LUA->L );
|
INPUTMAN->PushSelf( L );
|
||||||
lua_settable(L, LUA_GLOBALSINDEX);
|
lua_settable(L, LUA_GLOBALSINDEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,19 +110,19 @@ public:
|
|||||||
static int Load( T* p, lua_State *L )
|
static int Load( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
RageTextureID ID( SArg(1) );
|
RageTextureID ID( SArg(1) );
|
||||||
lua_pushboolean( LUA->L, p->Load(ID) );
|
lua_pushboolean( L, p->Load(ID) );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
static int LoadBackground( T* p, lua_State *L )
|
static int LoadBackground( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
RageTextureID ID( SArg(1) );
|
RageTextureID ID( SArg(1) );
|
||||||
lua_pushboolean( LUA->L, p->Load(Sprite::SongBGTexture(ID)) );
|
lua_pushboolean( L, p->Load(Sprite::SongBGTexture(ID)) );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
static int LoadBanner( T* p, lua_State *L )
|
static int LoadBanner( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
RageTextureID ID( SArg(1) );
|
RageTextureID ID( SArg(1) );
|
||||||
lua_pushboolean( LUA->L, p->Load(Sprite::SongBannerTexture(ID)) );
|
lua_pushboolean( L, p->Load(Sprite::SongBannerTexture(ID)) );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user