From 66012f08bca5919b609053f249129a32e93f40a3 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 23 Feb 2005 07:07:54 +0000 Subject: [PATCH] add Lua binding --- stepmania/src/Song.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index a2e4f003ae..37ace87a05 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1422,12 +1422,14 @@ public: CreateTableFromArray( v, L ); return 1; } + static int GetSongDir( T* p, lua_State *L ) { lua_pushstring(L, p->GetSongDir() ); return 1; } static void Register(lua_State *L) { ADD_METHOD( GetFullDisplayTitle ) ADD_METHOD( GetFullTranslitTitle ) ADD_METHOD( GetAllSteps ) + ADD_METHOD( GetSongDir ) Luna::Register( L ); } };