add .SM genre tag
This commit is contained in:
@@ -215,6 +215,9 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
|
||||
else if( 0==stricmp(sValueName,"ARTISTTRANSLIT") )
|
||||
out.m_sArtistTranslit = sParams[1];
|
||||
|
||||
else if( 0==stricmp(sValueName,"GENRE") )
|
||||
out.m_sGenre = sParams[1];
|
||||
|
||||
else if( 0==stricmp(sValueName,"CREDIT") )
|
||||
out.m_sCredit = sParams[1];
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out )
|
||||
f.PutLine( ssprintf( "#TITLETRANSLIT:%s;", out.m_sMainTitleTranslit.c_str() ) );
|
||||
f.PutLine( ssprintf( "#SUBTITLETRANSLIT:%s;", out.m_sSubTitleTranslit.c_str() ) );
|
||||
f.PutLine( ssprintf( "#ARTISTTRANSLIT:%s;", out.m_sArtistTranslit.c_str() ) );
|
||||
f.PutLine( ssprintf( "#GENRE:%s;", out.m_sGenre.c_str() ) );
|
||||
f.PutLine( ssprintf( "#CREDIT:%s;", out.m_sCredit.c_str() ) );
|
||||
f.PutLine( ssprintf( "#BANNER:%s;", out.m_sBannerFile.c_str() ) );
|
||||
f.PutLine( ssprintf( "#BACKGROUND:%s;", out.m_sBackgroundFile.c_str() ) );
|
||||
|
||||
@@ -111,6 +111,8 @@ public:
|
||||
CString GetFullDisplayTitle() const;
|
||||
CString GetFullTranslitTitle() const;
|
||||
|
||||
CString m_sGenre;
|
||||
|
||||
/* This is read and saved, but never actually used. */
|
||||
CString m_sCredit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user