diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index c735fb3666..628715f9ab 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1693,6 +1693,8 @@ public: static int SetGoalSeconds( T* p, lua_State *L ) { p->m_iGoalSeconds = IArg(1); return 0; } static int GetCaloriesBurnedToday( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCaloriesBurnedToday() ); return 1; } static int GetSaved( T* p, lua_State *L ) { p->m_SavedLuaData.PushSelf(L); return 1; } + static int GetTotalNumSongsPlayed( T* p, lua_State *L ) { lua_pushnumber(L, p->GetTotalNumSongsPlayed() ); return 1; } + static void Register(lua_State *L) { @@ -1706,6 +1708,7 @@ public: ADD_METHOD( SetGoalSeconds ) ADD_METHOD( GetCaloriesBurnedToday ) ADD_METHOD( GetSaved ) + ADD_METHOD( GetTotalNumSongsPlayed ) Luna::Register( L ); } };