Song::RevertFromDisk: flush first, don't fast load
This commit is contained in:
@@ -301,8 +301,14 @@ void Song::RevertFromDisk()
|
|||||||
/* Erase all existing data. */
|
/* Erase all existing data. */
|
||||||
Reset();
|
Reset();
|
||||||
|
|
||||||
|
FILEMAN->FlushDirCache( dir );
|
||||||
|
|
||||||
|
const bool OldVal = PREFSMAN->m_bFastLoad;
|
||||||
|
PREFSMAN->m_bFastLoad = false;
|
||||||
|
|
||||||
LoadFromSongDir( dir );
|
LoadFromSongDir( dir );
|
||||||
|
|
||||||
|
PREFSMAN->m_bFastLoad = OldVal;
|
||||||
|
|
||||||
if( GAMESTATE->m_pCurSong == this )
|
if( GAMESTATE->m_pCurSong == this )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user