add BakeAllBackgroundChanges
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "IniFile.h"
|
||||
#include "RageLog.h"
|
||||
#include <set>
|
||||
#include "Background.h"
|
||||
|
||||
|
||||
bool BackgroundDef::operator<( const BackgroundDef &other ) const
|
||||
@@ -299,6 +300,16 @@ found_files:
|
||||
StripCvs( vsPathsOut, vsNamesOut );
|
||||
}
|
||||
|
||||
void BackgroundUtil::BakeAllBackgroundChanges( Song *pSong )
|
||||
{
|
||||
Background bg;
|
||||
bg.LoadFromSong( pSong );
|
||||
vector<BackgroundChange> *vBGChanges[NUM_BackgroundLayer];
|
||||
FOREACH_BackgroundLayer( i )
|
||||
vBGChanges[i] = &pSong->GetBackgroundChanges(i);
|
||||
bg.GetLoadedBackgroundChanges( vBGChanges );
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2001-2004 Chris Danford, Ben Nordstrom
|
||||
* All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user