Consistent insensitive string comparisons.
This seems to reduce the need for a #define, but I need someone on the Windows side to check.
This commit is contained in:
@@ -143,9 +143,9 @@ static void Deserialize( Song &out, const Json::Value &root )
|
||||
out.m_fMusicSampleStartSeconds = (float)root["SampleStart"].asDouble();
|
||||
out.m_fMusicSampleLengthSeconds = (float)root["SampleLength"].asDouble();
|
||||
RString sSelectable = root["Selectable"].asString();
|
||||
if( !stricmp(sSelectable,"YES") )
|
||||
if( sSelectable.EqualsNoCase("YES") )
|
||||
out.m_SelectionDisplay = out.SHOW_ALWAYS;
|
||||
else if(!stricmp(sSelectable,"NO"))
|
||||
else if( sSelectable.EqualsNoCase("NO") )
|
||||
out.m_SelectionDisplay = out.SHOW_NEVER;
|
||||
|
||||
out.m_fFirstBeat = (float)root["FirstBeat"].asDouble();
|
||||
|
||||
Reference in New Issue
Block a user