is broken...
This commit is contained in:
@@ -54,9 +54,8 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, const Song &song,
|
|||||||
if (sValueName=="TITLE" || EndsWith(sValueName, "INTRO")
|
if (sValueName=="TITLE" || EndsWith(sValueName, "INTRO")
|
||||||
|| EndsWith(sValueName, "FILE") )
|
|| EndsWith(sValueName, "FILE") )
|
||||||
{
|
{
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
else if( sValueName=="BPM" )
|
else if( sValueName=="BPM" )
|
||||||
{
|
{
|
||||||
BPM1 = StringToFloat(sParams[1]);
|
BPM1 = StringToFloat(sParams[1]);
|
||||||
@@ -333,6 +332,7 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, const Song &song,
|
|||||||
{
|
{
|
||||||
// duh
|
// duh
|
||||||
iTickCount = static_cast<int>(numTemp);
|
iTickCount = static_cast<int>(numTemp);
|
||||||
|
// I have been owned by the man -DaisuMaster
|
||||||
stepsTiming.SetTickcountAtBeat( fCurBeat, clamp(iTickCount, 0, ROWS_PER_BEAT) );
|
stepsTiming.SetTickcountAtBeat( fCurBeat, clamp(iTickCount, 0, ROWS_PER_BEAT) );
|
||||||
}
|
}
|
||||||
else if (BeginsWith(sRowString, "|B"))
|
else if (BeginsWith(sRowString, "|B"))
|
||||||
@@ -371,7 +371,7 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, const Song &song,
|
|||||||
{
|
{
|
||||||
// scroll segments
|
// scroll segments
|
||||||
stepsTiming.SetScrollAtBeat( fCurBeat, numTemp );
|
stepsTiming.SetScrollAtBeat( fCurBeat, numTemp );
|
||||||
return true;
|
//return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@@ -495,7 +495,7 @@ static void LoadTags( const RString &str, Song &out )
|
|||||||
out.m_sArtist = artist;
|
out.m_sArtist = artist;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ProcessTickcounts( const RString & value, int & ticks, TimingData & timing )
|
static void ProcessTickcounts( const RString & tempValue, int & ticks, TimingData & timing )
|
||||||
{
|
{
|
||||||
/* adapt tickcounts //
|
/* adapt tickcounts //
|
||||||
// valid tickcounts for SM: 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 64, ROWS_PER_BEAT
|
// valid tickcounts for SM: 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 64, ROWS_PER_BEAT
|
||||||
@@ -545,7 +545,7 @@ static void ProcessTickcounts( const RString & value, int & ticks, TimingData &
|
|||||||
/* TICKCOUNT will be used below if there are DM compliant BPM changes
|
/* TICKCOUNT will be used below if there are DM compliant BPM changes
|
||||||
* and stops. It will be called again in LoadFromKSFFile for the
|
* and stops. It will be called again in LoadFromKSFFile for the
|
||||||
* actual steps. */
|
* actual steps. */
|
||||||
ticks = StringToInt( value );
|
ticks = StringToInt( tempValue );
|
||||||
ticks = ticks > 0 ? ticks : 4;
|
ticks = ticks > 0 ? ticks : 4;
|
||||||
// add a tickcount for those using the [Player]
|
// add a tickcount for those using the [Player]
|
||||||
// CheckpointsUseTimeSignatures metric. -aj
|
// CheckpointsUseTimeSignatures metric. -aj
|
||||||
@@ -642,10 +642,10 @@ static bool LoadGlobalData( const RString &sPath, Song &out, bool &bKIUCompliant
|
|||||||
TrimLeft( theSteps );
|
TrimLeft( theSteps );
|
||||||
split( theSteps, "\n", vNoteRows, true );
|
split( theSteps, "\n", vNoteRows, true );
|
||||||
}
|
}
|
||||||
|
else if( sValueName=="DIFFICULTY" || sValueName=="PLAYER" )
|
||||||
else if( sValueName=="DIFFICULTY" )
|
|
||||||
{
|
{
|
||||||
/* DIFFICULTY is handled only in LoadFromKSFFile. Ignore it here. */
|
/* DIFFICULTY and PLAYER are handled only in LoadFromKSFFile.
|
||||||
|
Ignore those here. */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// New cases noted in Aldo_MX's code:
|
// New cases noted in Aldo_MX's code:
|
||||||
|
|||||||
Reference in New Issue
Block a user