cache lyric path
This commit is contained in:
@@ -103,6 +103,10 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
|
||||
else if( 0==stricmp(sValueName,"BACKGROUND") )
|
||||
out.m_sBackgroundFile = sParams[1];
|
||||
|
||||
/* Save "#LYRICS" for later, so we can add an internal lyrics tag. */
|
||||
else if( 0==stricmp(sValueName,"LYRICSPATH") )
|
||||
out.m_sLyricsFile = sParams[1];
|
||||
|
||||
else if( 0==stricmp(sValueName,"CDTITLE") )
|
||||
out.m_sCDTitleFile = sParams[1];
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ void NotesWriterSM::WriteGlobalTags(FILE *fp, const Song &out)
|
||||
fprintf( fp, "#CREDIT:%s;\n", out.m_sCredit.GetString() );
|
||||
fprintf( fp, "#BANNER:%s;\n", out.m_sBannerFile.GetString() );
|
||||
fprintf( fp, "#BACKGROUND:%s;\n", out.m_sBackgroundFile.GetString() );
|
||||
fprintf( fp, "#LYRICSPATH:%s;\n", out.m_sLyricsFile.GetString() );
|
||||
fprintf( fp, "#CDTITLE:%s;\n", out.m_sCDTitleFile.GetString() );
|
||||
fprintf( fp, "#MUSIC:%s;\n", out.m_sMusicFile.GetString() );
|
||||
fprintf( fp, "#MUSICBYTES:%u;\n", out.m_iMusicBytes );
|
||||
|
||||
Reference in New Issue
Block a user