Changed NotesLoaderBMS to not crash when trying to set StepsTypeStr for an unrecognized StepsType. Removed ConfOption for ShowSelectGroup from ScreenOptionsMasterPrefs because the preference does not exist.
This commit is contained in:
@@ -923,7 +923,14 @@ void BMSChartReader::CalculateStepsType()
|
|||||||
{
|
{
|
||||||
nonEmptyTracksCount = nonEmptyTracks.size();
|
nonEmptyTracksCount = nonEmptyTracks.size();
|
||||||
out->m_StepsType = DetermineStepsType();
|
out->m_StepsType = DetermineStepsType();
|
||||||
out->m_StepsTypeStr = GAMEMAN->GetStepsTypeInfo(out->m_StepsType).szName;
|
if(out->m_StepsType == StepsType_Invalid)
|
||||||
|
{
|
||||||
|
out->m_StepsTypeStr = "BMS_loaded_invalid_stepstype";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out->m_StepsTypeStr = GAMEMAN->GetStepsTypeInfo(out->m_StepsType).szName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BmsRawChannel
|
enum BmsRawChannel
|
||||||
|
|||||||
@@ -726,7 +726,6 @@ static void InitializeConfOptions()
|
|||||||
ADD( ConfOption( "ShowInstructions", MovePref<bool>, "Skip","Show") );
|
ADD( ConfOption( "ShowInstructions", MovePref<bool>, "Skip","Show") );
|
||||||
ADD( ConfOption( "ShowCaution", MovePref<bool>, "Skip","Show") );
|
ADD( ConfOption( "ShowCaution", MovePref<bool>, "Skip","Show") );
|
||||||
ADD( ConfOption( "DancePointsForOni", MovePref<bool>, "Percent","Dance Points") );
|
ADD( ConfOption( "DancePointsForOni", MovePref<bool>, "Percent","Dance Points") );
|
||||||
ADD( ConfOption( "ShowSelectGroup", MovePref<bool>, "All Music","Choose") );
|
|
||||||
ADD( ConfOption( "MusicWheelUsesSections", MovePref<MusicWheelUsesSections>, "Never","Always","Title Only") );
|
ADD( ConfOption( "MusicWheelUsesSections", MovePref<MusicWheelUsesSections>, "Never","Always","Title Only") );
|
||||||
ADD( ConfOption( "CourseSortOrder", MovePref<CourseSortOrders>, "Num Songs","Average Feet","Total Feet","Ranking") );
|
ADD( ConfOption( "CourseSortOrder", MovePref<CourseSortOrders>, "Num Songs","Average Feet","Total Feet","Ranking") );
|
||||||
ADD( ConfOption( "MoveRandomToEnd", MovePref<bool>, "No","Yes") );
|
ADD( ConfOption( "MoveRandomToEnd", MovePref<bool>, "No","Yes") );
|
||||||
|
|||||||
Reference in New Issue
Block a user