From 5cbc1fcd5f635b9a82210927b8b89100be7e7a9f Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 3 Aug 2005 03:12:09 +0000 Subject: [PATCH] increase MAX_EDIT_COURSE_TITLE_LENGTH --- stepmania/src/Course.cpp | 32 ++++++++++++++++++++++++++++++++ stepmania/src/Course.h | 5 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 32290ce1fe..60291457b4 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -96,6 +96,38 @@ int CourseEntry::GetNumModChanges() const return iNumModChanges; } +// lua start +/* +#include "LuaBinding.h" + +class LunaCourseEntry: public Luna +{ +public: + LunaCourseEntry() { LUA->Register( Register ); } + + static int GetSong( T* p, lua_State *L ) + { + if( p->pSong ) + p->pSong->PushSelf(L); + else + lua_pushnil(L); + return 1; + } + + static void Register(lua_State *L) + { + ADD_METHOD( GetSong ) + + Luna::Register( L ); + } +}; + +LUA_REGISTER_CLASS( CourseEntry ) +*/ +// lua end + + + Course::Course() { diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 1ef4a18a46..416861b31d 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -18,7 +18,7 @@ class Steps; class Profile; struct lua_State; -const int MAX_EDIT_COURSE_TITLE_LENGTH = 12; +const int MAX_EDIT_COURSE_TITLE_LENGTH = 20; enum CourseType { @@ -97,6 +97,9 @@ public: CString GetTextDescription() const; int GetNumModChanges() const; + + // Lua + void PushSelf( lua_State *L ); }; const int MAX_ENTRIES_PER_COURSE = 50;