Add reading of the Genre tag in BMS files

This commit is contained in:
Colby Klein
2008-03-23 02:00:11 +00:00
parent 60874b3743
commit 64a7d46f6c
+2 -2
View File
@@ -732,6 +732,7 @@ static void ReadGlobalTags( const NameToData_t &mapNameToData, Song &out, Measur
NotesLoader::GetMainAndSubTitlesFromFullTitle( sData, out.m_sMainTitle, out.m_sSubTitle );
GetTagFromMap( mapNameToData, "#artist", out.m_sArtist );
GetTagFromMap( mapNameToData, "#genre", out.m_sGenre );
GetTagFromMap( mapNameToData, "#backbmp", out.m_sBackgroundFile );
GetTagFromMap( mapNameToData, "#wav", out.m_sMusicFile );
@@ -1053,8 +1054,6 @@ bool BMSLoader::LoadFromDir( const RString &sDir, Song &out )
RString sTag;
if( GetTagFromMap( aBMSData[i], "#title", sTag ) )
SearchForDifficulty( sTag, pSteps );
if( GetTagFromMap( aBMSData[i], "#genre", sTag ) )
SearchForDifficulty( sTag, pSteps );
}
}
@@ -1092,6 +1091,7 @@ bool BMSLoader::LoadFromDir( const RString &sDir, Song &out )
ConvertString( out.m_sMainTitle, "utf-8,japanese" );
ConvertString( out.m_sArtist, "utf-8,japanese" );
ConvertString( out.m_sGenre, "utf-8,japanese" );
return true;