MoveMap( sel, PREFSMAN->m_iCustomMaxSeconds, ToSel, mapping, ARRAYLEN(mapping) );
}
-static void CustomMaxSizeMB( int &sel, bool ToSel, const ConfOption *pConfOption )
-{
- const int mapping[] = { 3, 4, 5, 6, 7, 8, 9, 10, 0 };
- MoveMap( sel, PREFSMAN->m_iCustomMaxSizeMB, ToSel, mapping, ARRAYLEN(mapping) );
-}
-
static void CustomsLoadTimeout( int &sel, bool ToSel, const ConfOption *pConfOption )
{
const float mapping[] = { 5.0f, 10.0f, 15.0f, 20.0f, 25.0f, 30.0f, 45.0f, 60.0f };
MoveMap( sel, PREFSMAN->m_iCustomsLoadMax, ToSel, mapping, ARRAYLEN(mapping) );
}
-MOVE( AllowExtraPlayerOptions, PREFSMAN->m_bAllowExtraPlayerOptions );
-
static void MarvelousTiming( int &sel, bool ToSel, const ConfOption *pConfOption )
{
const PrefsManager::MarvelousTiming mapping[] = { PrefsManager::MARVELOUS_NEVER, PrefsManager::MARVELOUS_COURSES_ONLY, PrefsManager::MARVELOUS_EVERYWHERE };
ADD( ConfOption( "UnlockSystem", UnlockSystem, "OFF","ON" ) );
ADD( ConfOption( "SongEdits", SongEdits, "OFF", "ON" ) );
ADD( ConfOption( "CourseEdits", CourseEdits, "OFF", "ON" ) );
- ADD( ConfOption( "AllowExtraPlayerOptions", AllowExtraPlayerOptions, "OFF", "ON" ) );
ADD( ConfOption( "CustomMaxSeconds", CustomMaxSeconds, "1:30", "1:45", "2:00", "2:15", "2:30", "2:45", "3:00",
"3:30", "4:00", "4:30", "5:00", "5:30",
"6:00", "7:00", "10:00", "UNLIMITED" ) );
- ADD( ConfOption( "CustomMaxSizeMB", CustomMaxSizeMB, "3MB", "4MB", "5MB", "6MB", "7MB", "8MB", "9MB", "10MB", "UNLIMITED" ) );
-
ADD( ConfOption( "CustomsLoadTimeout", CustomsLoadTimeout, "5s", "10s", "15s", "20s", "25s", "30s", "45s", "1m" ) );
ADD( ConfOption( "CustomsLoadMax", CustomsLoadMax, "10", "20", "30", "40", "50", "60", "UNLIMITED" ) );
return false;
}
- // music too big?
- if( PREFSMAN->m_iCustomMaxSizeMB > 0 )
- {
- int iLimit = 1024*1024*PREFSMAN->m_iCustomMaxSizeMB;
-
- if( FILEMAN->GetFileSizeInBytes(GetMusicPath()) > iLimit )
- {
- sError = ssprintf( "This song is too big.\nThe maximum size is %u MB.",
- (int)PREFSMAN->m_iCustomMaxSizeMB );
- return false;
- }
- }
-
- // SM file too big?
- if( PREFSMAN->m_iCustomMaxStepsSizeKB > 0 )
- {
- int iLimit = 1024*PREFSMAN->m_iCustomMaxStepsSizeKB;
-
- if( FILEMAN->GetFileSizeInBytes(GetSongFilePath()) > iLimit )
- {
- sError = ssprintf( "The .SM file is too big.\nMaximum size is %u KB.",
- (int)PREFSMAN->m_iCustomMaxStepsSizeKB );
- return false;
- }
- }
-
/* we used to use this to test music length, but we only care about steps length.
* do this anyway, as a simple check to make sure the song can actually load. */
CString sResult;