From 80b7ba5e9bb83bf97aea8c8b97e66c6cbd686544 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 18 Mar 2005 23:55:37 +0000 Subject: [PATCH] add GetBannerPath and GetBackgroundPath --- stepmania/src/Song.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index d2363b4650..672943dd58 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1481,7 +1481,8 @@ public: return 1; } static int GetSongDir( T* p, lua_State *L ) { lua_pushstring(L, p->GetSongDir() ); return 1; } - + static int GetBannerPath( T* p, lua_State *L ) { if( !p->HasBanner() ) lua_pushnil(L); else lua_pushstring(L, p->GetBannerPath()); return 1; } + static int GetBackgroundPath( T* p, lua_State *L ) { if( !p->HasBackground() ) lua_pushnil(L); else lua_pushstring(L, p->GetBackgroundPath()); return 1; } static void Register(lua_State *L) { ADD_METHOD( GetFullDisplayTitle ) @@ -1492,6 +1493,8 @@ public: ADD_METHOD( GetAllSteps ) ADD_METHOD( GetStepsByStepsType ) ADD_METHOD( GetSongDir ) + ADD_METHOD( GetBannerPath ) + ADD_METHOD( GetBackgroundPath ) Luna::Register( L ); } };