Cleanup.
This commit is contained in:
@@ -77,8 +77,9 @@ bool KSFLoader::LoadFromKSFFile( const RString &sPath, Steps &out, const Song &s
|
|||||||
|
|
||||||
// handle the data
|
// handle the data
|
||||||
if( 0==stricmp(sValueName,"TICKCOUNT") )
|
if( 0==stricmp(sValueName,"TICKCOUNT") )
|
||||||
|
{
|
||||||
iTickCount = atoi( sParams[1] );
|
iTickCount = atoi( sParams[1] );
|
||||||
|
}
|
||||||
else if( 0==stricmp(sValueName,"STEP") )
|
else if( 0==stricmp(sValueName,"STEP") )
|
||||||
{
|
{
|
||||||
RString step = sParams[1];
|
RString step = sParams[1];
|
||||||
@@ -86,8 +87,10 @@ bool KSFLoader::LoadFromKSFFile( const RString &sPath, Steps &out, const Song &s
|
|||||||
split( step, "\n", asRows, true );
|
split( step, "\n", asRows, true );
|
||||||
}
|
}
|
||||||
else if( 0==stricmp(sValueName,"DIFFICULTY") )
|
else if( 0==stricmp(sValueName,"DIFFICULTY") )
|
||||||
|
{
|
||||||
out.SetMeter( atoi(sParams[1]) );
|
out.SetMeter( atoi(sParams[1]) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( iTickCount == -1 )
|
if( iTickCount == -1 )
|
||||||
{
|
{
|
||||||
@@ -298,11 +301,12 @@ bool KSFLoader::LoadGlobalData( const RString &sPath, Song &out )
|
|||||||
out.m_Timing.m_fBeat0OffsetInSeconds = -StringToFloat( sParams[1] )/100;
|
out.m_Timing.m_fBeat0OffsetInSeconds = -StringToFloat( sParams[1] )/100;
|
||||||
else if( 0==stricmp(sValueName,"TICKCOUNT") ||
|
else if( 0==stricmp(sValueName,"TICKCOUNT") ||
|
||||||
0==stricmp(sValueName,"STEP") ||
|
0==stricmp(sValueName,"STEP") ||
|
||||||
0==stricmp(sValueName,"DIFFICULTY"))
|
0==stricmp(sValueName,"DIFFICULTY") ||
|
||||||
; /* Handled in LoadFromKSFFile; don't warn. */
|
0==stricmp(sValueName,"STARTTIME2") ||
|
||||||
else if( 0==stricmp(sValueName,"STARTTIME2") ||
|
|
||||||
0==stricmp(sValueName,"STARTTIME3") )
|
0==stricmp(sValueName,"STARTTIME3") )
|
||||||
continue; /* Expected value for other Pump Simulators: don't worry about it here. */
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
LOG->Trace( "Unexpected value named '%s'", sValueName.c_str() );
|
LOG->Trace( "Unexpected value named '%s'", sValueName.c_str() );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user