Invalidate cache due to addition of Pump couples loading.
Don't add songs that fail to load.
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
#include "NotesLoaderKSF.h"
|
#include "NotesLoaderKSF.h"
|
||||||
#include "NotesWriterDWI.h"
|
#include "NotesWriterDWI.h"
|
||||||
|
|
||||||
const int FILE_CACHE_VERSION = 65; // increment this when Song or Notes changes to invalidate cache
|
const int FILE_CACHE_VERSION = 66; // increment this when Song or Notes changes to invalidate cache
|
||||||
|
|
||||||
|
|
||||||
int CompareBPMSegments(const void *arg1, const void *arg2)
|
int CompareBPMSegments(const void *arg1, const void *arg2)
|
||||||
|
|||||||
@@ -150,7 +150,12 @@ void SongManager::LoadStepManiaSongDir( CString sDir, void(*callback)() )
|
|||||||
if( callback )
|
if( callback )
|
||||||
callback();
|
callback();
|
||||||
Song* pNewSong = new Song;
|
Song* pNewSong = new Song;
|
||||||
pNewSong->LoadFromSongDir( ssprintf("%s\\%s\\%s", sDir, sGroupDirName, sSongDirName) );
|
if( !pNewSong->LoadFromSongDir( ssprintf("%s\\%s\\%s", sDir, sGroupDirName, sSongDirName) ) ) {
|
||||||
|
/* The song failed to load. */
|
||||||
|
delete pNewSong;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
m_pSongs.Add( pNewSong );
|
m_pSongs.Add( pNewSong );
|
||||||
loaded++;
|
loaded++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user