From d1ff152ee2eeb0cb6864d583aea03af39a1fd00d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 26 Jul 2005 19:39:58 +0000 Subject: [PATCH] add Lua bindings for GetPath* so that it's not necessary to use the ugly ElementCategory constants --- stepmania/src/ThemeManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index a6ef39a929..8d6f839e83 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -911,11 +911,15 @@ public: static int GetMetric( T* p, lua_State *L ) { lua_pushstring(L, p->GetMetric(SArg(1),SArg(2)) ); return 1; } static int GetPath( T* p, lua_State *L ) { lua_pushstring(L, p->GetPath((ElementCategory)IArg(1),SArg(2),SArg(3)) ); return 1; } + static int GetPathG( T* p, lua_State *L ) { lua_pushstring(L, p->GetPathG(SArg(1),SArg(2)) ); return 1; } + static int GetPathB( T* p, lua_State *L ) { lua_pushstring(L, p->GetPathB(SArg(1),SArg(2)) ); return 1; } static void Register(lua_State *L) { ADD_METHOD( GetMetric ) ADD_METHOD( GetPath ) + ADD_METHOD( GetPathG ) + ADD_METHOD( GetPathB ) Luna::Register( L );