From c15b82a222b0cc550103df284d8bf9d139bf269a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 6 Aug 2005 05:33:29 +0000 Subject: [PATCH] add EditProfileID lua binding --- stepmania/src/GameState.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 6c848ca809..df6f78b556 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -2046,6 +2046,7 @@ public: } static int GetCurrentGame( T* p, lua_State *L ) { const_cast(p->GetCurrentGame())->PushSelf( L ); return 1; } static int GetEditCourseEntryIndex( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iEditCourseEntryIndex ); return 1; } + static int GetEditLocalProfileID( T* p, lua_State *L ) { lua_pushstring(L, p->m_sEditLocalProfileID.Get() ); return 1; } static int GetEditLocalProfile( T* p, lua_State *L ) { Profile *pProfile = p->GetEditLocalProfile(); @@ -2109,6 +2110,7 @@ public: ADD_METHOD( IsWinner ) ADD_METHOD( GetCurrentGame ) ADD_METHOD( GetEditCourseEntryIndex ) + ADD_METHOD( GetEditLocalProfileID ) ADD_METHOD( GetEditLocalProfile ) Luna::Register( L );