Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. (#1470)
This commit is contained in:
@@ -47,6 +47,7 @@ namespace LuaHelpers
|
||||
template<> bool FromStack<bool>( Lua *L, bool &Object, int iOffset );
|
||||
template<> bool FromStack<float>( Lua *L, float &Object, int iOffset );
|
||||
template<> bool FromStack<int>( Lua *L, int &Object, int iOffset );
|
||||
template<> bool FromStack<unsigned int>( Lua *L, unsigned int &Object, int iOffset );
|
||||
template<> bool FromStack<RString>( Lua *L, RString &Object, int iOffset );
|
||||
|
||||
bool InReportScriptError= false;
|
||||
@@ -88,6 +89,7 @@ namespace LuaHelpers
|
||||
template<> bool FromStack<bool>( Lua *L, bool &Object, int iOffset ) { Object = !!lua_toboolean( L, iOffset ); return true; }
|
||||
template<> bool FromStack<float>( Lua *L, float &Object, int iOffset ) { Object = (float)lua_tonumber( L, iOffset ); return true; }
|
||||
template<> bool FromStack<int>( Lua *L, int &Object, int iOffset ) { Object = lua_tointeger( L, iOffset ); return true; }
|
||||
template<> bool FromStack<unsigned int>( Lua *L, unsigned int &Object, int iOffset ) { Object = lua_tointeger( L, iOffset ); return true; }
|
||||
template<> bool FromStack<RString>( Lua *L, RString &Object, int iOffset )
|
||||
{
|
||||
size_t iLen;
|
||||
|
||||
Reference in New Issue
Block a user