Add Lua binding
This commit is contained in:
@@ -839,6 +839,7 @@ public:
|
|||||||
static int GetProfileDir( T* p, lua_State *L ) { lua_pushstring(L, p->GetProfileDir(Enum::Check<ProfileSlot>(L, 1)) ); return 1; }
|
static int GetProfileDir( T* p, lua_State *L ) { lua_pushstring(L, p->GetProfileDir(Enum::Check<ProfileSlot>(L, 1)) ); return 1; }
|
||||||
static int IsSongNew( T* p, lua_State *L ) { lua_pushboolean(L, p->IsSongNew(Luna<Song>::check(L,1)) ); return 1; }
|
static int IsSongNew( T* p, lua_State *L ) { lua_pushboolean(L, p->IsSongNew(Luna<Song>::check(L,1)) ); return 1; }
|
||||||
static int ProfileWasLoadedFromMemoryCard( T* p, lua_State *L ) { lua_pushboolean(L, p->ProfileWasLoadedFromMemoryCard(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
|
static int ProfileWasLoadedFromMemoryCard( T* p, lua_State *L ) { lua_pushboolean(L, p->ProfileWasLoadedFromMemoryCard(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
|
||||||
|
static int LastLoadWasTamperedOrCorrupt( T* p, lua_State *L ) { lua_pushboolean(L, p->LastLoadWasTamperedOrCorrupt(Enum::Check<PlayerNumber>(L, 1)) ); return 1; }
|
||||||
|
|
||||||
LunaProfileManager()
|
LunaProfileManager()
|
||||||
{
|
{
|
||||||
@@ -854,6 +855,7 @@ public:
|
|||||||
ADD_METHOD( GetProfileDir );
|
ADD_METHOD( GetProfileDir );
|
||||||
ADD_METHOD( IsSongNew );
|
ADD_METHOD( IsSongNew );
|
||||||
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
|
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
|
||||||
|
ADD_METHOD( LastLoadWasTamperedOrCorrupt );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user