[ProfileManager] Added ProfileWasLoadedFromMemoryCard(PlayerNumber) Lua binding.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $NEXT | 20110xyy
|
StepMania 5.0 $NEXT | 20110xyy
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/05/16
|
||||||
|
----------
|
||||||
|
* [ProfileManager] Added ProfileWasLoadedFromMemoryCard(PlayerNumber)
|
||||||
|
Lua binding. [AJ]
|
||||||
|
|
||||||
2011/05/15
|
2011/05/15
|
||||||
----------
|
----------
|
||||||
* [ScreenGameplay] Removed hardcoded commands for Debug (give up text) and
|
* [ScreenGameplay] Removed hardcoded commands for Debug (give up text) and
|
||||||
|
|||||||
@@ -833,6 +833,7 @@ public:
|
|||||||
static int GetNumLocalProfiles( T* p, lua_State *L ) { lua_pushnumber(L, p->GetNumLocalProfiles() ); return 1; }
|
static int GetNumLocalProfiles( T* p, lua_State *L ) { lua_pushnumber(L, p->GetNumLocalProfiles() ); return 1; }
|
||||||
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; }
|
||||||
|
|
||||||
LunaProfileManager()
|
LunaProfileManager()
|
||||||
{
|
{
|
||||||
@@ -847,6 +848,7 @@ public:
|
|||||||
ADD_METHOD( GetNumLocalProfiles );
|
ADD_METHOD( GetNumLocalProfiles );
|
||||||
ADD_METHOD( GetProfileDir );
|
ADD_METHOD( GetProfileDir );
|
||||||
ADD_METHOD( IsSongNew );
|
ADD_METHOD( IsSongNew );
|
||||||
|
ADD_METHOD( ProfileWasLoadedFromMemoryCard );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user