diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 91fb2ccaf9..b5c710aa47 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,11 @@ ________________________________________________________________________________ StepMania 5.0 $NEXT | 20110xyy -------------------------------------------------------------------------------- +2011/05/16 +---------- +* [ProfileManager] Added ProfileWasLoadedFromMemoryCard(PlayerNumber) + Lua binding. [AJ] + 2011/05/15 ---------- * [ScreenGameplay] Removed hardcoded commands for Debug (give up text) and diff --git a/src/ProfileManager.cpp b/src/ProfileManager.cpp index 812db73a8c..39821a75e1 100644 --- a/src/ProfileManager.cpp +++ b/src/ProfileManager.cpp @@ -833,6 +833,7 @@ public: 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(L, 1)) ); return 1; } static int IsSongNew( T* p, lua_State *L ) { lua_pushboolean(L, p->IsSongNew(Luna::check(L,1)) ); return 1; } + static int ProfileWasLoadedFromMemoryCard( T* p, lua_State *L ) { lua_pushboolean(L, p->ProfileWasLoadedFromMemoryCard(Enum::Check(L, 1)) ); return 1; } LunaProfileManager() { @@ -847,6 +848,7 @@ public: ADD_METHOD( GetNumLocalProfiles ); ADD_METHOD( GetProfileDir ); ADD_METHOD( IsSongNew ); + ADD_METHOD( ProfileWasLoadedFromMemoryCard ); } };