Now reads fractional index values from DWI for #FREEZE and #BPMCHANGE
This commit is contained in:
@@ -310,7 +310,7 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
|
|||||||
{
|
{
|
||||||
CStringArray arrayFreezeValues;
|
CStringArray arrayFreezeValues;
|
||||||
split( arrayFreezeExpressions[f], "=", arrayFreezeValues );
|
split( arrayFreezeExpressions[f], "=", arrayFreezeValues );
|
||||||
float fIndex = atoi( arrayFreezeValues[0] ) * ROWS_PER_BEAT / 4.0f;
|
float fIndex = (float)atof( arrayFreezeValues[0] ) * ROWS_PER_BEAT / 4.0f;
|
||||||
float fFreezeBeat = NoteRowToBeat( fIndex );
|
float fFreezeBeat = NoteRowToBeat( fIndex );
|
||||||
float fFreezeSeconds = (float)atof( arrayFreezeValues[1] ) / 1000.0f;
|
float fFreezeSeconds = (float)atof( arrayFreezeValues[1] ) / 1000.0f;
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
|
|||||||
LOG->Warn( "Invalid CHANGEBPM: \"%s\"", arrayBPMChangeExpressions[b]);
|
LOG->Warn( "Invalid CHANGEBPM: \"%s\"", arrayBPMChangeExpressions[b]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float fIndex = atoi( arrayBPMChangeValues[0] ) * ROWS_PER_BEAT / 4.0f;
|
float fIndex = (float)atof( arrayBPMChangeValues[0] ) * ROWS_PER_BEAT / 4.0f;
|
||||||
float fBeat = NoteRowToBeat( fIndex );
|
float fBeat = NoteRowToBeat( fIndex );
|
||||||
float fNewBPM = (float)atof( arrayBPMChangeValues[1] );
|
float fNewBPM = (float)atof( arrayBPMChangeValues[1] );
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "MenuElements.h"
|
#include "MenuElements.h"
|
||||||
|
|
||||||
|
|
||||||
const int MAX_MUSIC_LINES = 700;
|
const int MAX_MUSIC_LINES = 20;
|
||||||
const int MAX_CREDIT_LINES = 100;
|
const int MAX_CREDIT_LINES = 100;
|
||||||
const int MAX_TOTAL_LINES = MAX_MUSIC_LINES + MAX_CREDIT_LINES;
|
const int MAX_TOTAL_LINES = MAX_MUSIC_LINES + MAX_CREDIT_LINES;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user