Flush the directory cache so that --temp-- is removed. Is there a reason to do this rather than access(2)? (Obviously, this would need to be done in the FileManager itself.)
This commit is contained in:
@@ -211,6 +211,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
}
|
}
|
||||||
|
|
||||||
file.Close();
|
file.Close();
|
||||||
|
FILEMAN->FlushDirCache( sDir );
|
||||||
FILEMAN->Remove( sTempFile );
|
FILEMAN->Remove( sTempFile );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -268,7 +269,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
|
|
||||||
GAMESTATE->m_pCurSong.Set( pSong );
|
GAMESTATE->m_pCurSong.Set( pSong );
|
||||||
GAMESTATE->m_pCurSteps[0].Set( pSteps );
|
GAMESTATE->m_pCurSteps[PLAYER_1].Set( pSteps );
|
||||||
GAMESTATE->m_pCurCourse.Set( NULL );
|
GAMESTATE->m_pCurCourse.Set( NULL );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user