add #JACKET, #CDIMAGE, and #DISCIMAGE tags to .ssc format (up to v0.81 now).
This commit is contained in:
@@ -9,6 +9,9 @@ change to JSON, but it is unsure if this will be done.
|
||||
Implement .ssc at your own risk.
|
||||
_______________________________________________________________________________
|
||||
|
||||
[v0.81] - freem
|
||||
* add #JACKET, #CDIMAGE, and #DISCIMAGE tags. (similar to #BANNER, etc.)
|
||||
|
||||
[v0.80] - Wolfman2000
|
||||
* All timing tags are allowed regardless of timing.
|
||||
|
||||
|
||||
@@ -325,6 +325,21 @@ bool SSCLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCach
|
||||
out.m_sBackgroundFile = sParams[1];
|
||||
}
|
||||
|
||||
else if( sValueName=="JACKET" )
|
||||
{
|
||||
out.m_sJacketFile = sParams[1];
|
||||
}
|
||||
|
||||
else if( sValueName=="CDIMAGE" )
|
||||
{
|
||||
out.m_sCDFile = sParams[1];
|
||||
}
|
||||
|
||||
else if( sValueName=="DISCIMAGE" )
|
||||
{
|
||||
out.m_sDiscFile = sParams[1];
|
||||
}
|
||||
|
||||
else if( sValueName=="LYRICSPATH" )
|
||||
{
|
||||
out.m_sLyricsFile = sParams[1];
|
||||
|
||||
@@ -222,6 +222,9 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
|
||||
f.PutLine( ssprintf( "#CREDIT:%s;", SmEscape(out.m_sCredit).c_str() ) );
|
||||
f.PutLine( ssprintf( "#BANNER:%s;", SmEscape(out.m_sBannerFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#BACKGROUND:%s;", SmEscape(out.m_sBackgroundFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#JACKET:%s;", SmEscape(out.m_sJacketFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#CDIMAGE:%s;", SmEscape(out.m_sCDFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#DISCIMAGE:%s;", SmEscape(out.m_sDiscFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#LYRICSPATH:%s;", SmEscape(out.m_sLyricsFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#CDTITLE:%s;", SmEscape(out.m_sCDTitleFile).c_str() ) );
|
||||
f.PutLine( ssprintf( "#MUSIC:%s;", SmEscape(out.m_sMusicFile).c_str() ) );
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ void FixupPath( RString &path, const RString &sSongPath );
|
||||
RString GetSongAssetPath( RString sPath, const RString &sSongPath );
|
||||
|
||||
/** @brief The version of the .ssc file format. */
|
||||
const static float STEPFILE_VERSION_NUMBER = 0.80f;
|
||||
const static float STEPFILE_VERSION_NUMBER = 0.81f;
|
||||
|
||||
/** @brief How many edits for this song can each profile have? */
|
||||
const int MAX_EDITS_PER_SONG_PER_PROFILE = 15;
|
||||
|
||||
Reference in New Issue
Block a user