Integrate C++11 branch into 5_1-new
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <cstring>
|
||||
#include "NotesWriterSSC.h"
|
||||
#include "BackgroundUtil.h"
|
||||
#include "Foreach.h"
|
||||
#include "GameManager.h"
|
||||
#include "LocalizedString.h"
|
||||
#include "NoteTypes.h"
|
||||
@@ -289,8 +288,8 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
|
||||
else
|
||||
f.Write( ssprintf("#BGCHANGES%d:", b+1) );
|
||||
|
||||
FOREACH_CONST( BackgroundChange, out.GetBackgroundChanges(b), bgc )
|
||||
f.PutLine( (*bgc).ToString() +"," );
|
||||
for (BackgroundChange const &bgc : out.GetBackgroundChanges(b))
|
||||
f.PutLine( bgc.ToString() +"," );
|
||||
|
||||
/* If there's an animation plan at all, add a dummy "-nosongbg-" tag to
|
||||
* indicate that this file doesn't want a song BG entry added at the end.
|
||||
@@ -304,9 +303,9 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
|
||||
if( out.GetForegroundChanges().size() )
|
||||
{
|
||||
f.Write( "#FGCHANGES:" );
|
||||
FOREACH_CONST( BackgroundChange, out.GetForegroundChanges(), bgc )
|
||||
for (BackgroundChange const &bgc : out.GetForegroundChanges())
|
||||
{
|
||||
f.PutLine( (*bgc).ToString() +"," );
|
||||
f.PutLine( bgc.ToString() +"," );
|
||||
}
|
||||
f.PutLine( ";" );
|
||||
}
|
||||
@@ -464,9 +463,8 @@ bool NotesWriterSSC::Write( RString sPath, const Song &out, const vector<Steps*>
|
||||
}
|
||||
|
||||
// Save specified Steps to this file
|
||||
FOREACH_CONST( Steps*, vpStepsToSave, s )
|
||||
for (Steps const *pSteps : vpStepsToSave)
|
||||
{
|
||||
const Steps* pSteps = *s;
|
||||
RString sTag = GetSSCNoteData( out, *pSteps, bSavingCache );
|
||||
f.PutLine( sTag );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user