add support for |E| tag from DirectMove KSF files.
This commit is contained in:
@@ -200,7 +200,7 @@ static bool LoadFromKSFFile( const RString &sPath, Steps &out, const Song &song,
|
|||||||
sRowString.c_str() );
|
sRowString.c_str() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if( BeginsWith(sRowString, "|B") || BeginsWith(sRowString, "|D") )
|
if( BeginsWith(sRowString, "|B") || BeginsWith(sRowString, "|D") || BeginsWith(sRowString, "|E") )
|
||||||
{
|
{
|
||||||
// These don't have to be worried about here: the changes and stops were already added.
|
// These don't have to be worried about here: the changes and stops were already added.
|
||||||
continue;
|
continue;
|
||||||
@@ -470,8 +470,8 @@ static bool LoadGlobalData( const RString &sPath, Song &out, bool &bKIUCompliant
|
|||||||
/* This is where the DMRequired test will take place. */
|
/* This is where the DMRequired test will take place. */
|
||||||
if( NoteRowString.size() != 13)
|
if( NoteRowString.size() != 13)
|
||||||
{
|
{
|
||||||
if (BeginsWith(NoteRowString, "|T") ||
|
if (BeginsWith(NoteRowString, "|T") || BeginsWith(NoteRowString, "|B") ||
|
||||||
BeginsWith(NoteRowString, "|B") || BeginsWith(NoteRowString, "|D") )
|
BeginsWith(NoteRowString, "|D") || BeginsWith(NoteRowString, "|E") )
|
||||||
{
|
{
|
||||||
bDMRequired = true;
|
bDMRequired = true;
|
||||||
RString temp = NoteRowString.substr(2,NoteRowString.size()-3);
|
RString temp = NoteRowString.substr(2,NoteRowString.size()-3);
|
||||||
@@ -488,12 +488,18 @@ static bool LoadGlobalData( const RString &sPath, Song &out, bool &bKIUCompliant
|
|||||||
speedToChange = numTemp;
|
speedToChange = numTemp;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else
|
else if (BeginsWith(NoteRowString, "|D"))
|
||||||
{
|
{
|
||||||
bBPMStopNeeded = true;
|
bBPMStopNeeded = true;
|
||||||
timeToStop = numTemp / 1000.0f;
|
timeToStop = numTemp / 1000.0f;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (BeginsWith(NoteRowString, "|E"))
|
||||||
|
{
|
||||||
|
bBPMStopNeeded = true;
|
||||||
|
timeToStop = (60 / out.m_Timing.GetBPMAtBeat(NoteRowToBeat(i)) * numTemp) / (float)iTickCount;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user