From 4a0718c4e892936153734709a4f143999f7bda3a Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 12 Sep 2006 03:24:58 +0000 Subject: [PATCH] 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.) --- stepmania/src/ScreenEditMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEditMenu.cpp b/stepmania/src/ScreenEditMenu.cpp index b50c7e0e53..378d3c7108 100644 --- a/stepmania/src/ScreenEditMenu.cpp +++ b/stepmania/src/ScreenEditMenu.cpp @@ -211,6 +211,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn ) } file.Close(); + FILEMAN->FlushDirCache( sDir ); FILEMAN->Remove( sTempFile ); break; } @@ -268,7 +269,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn ) SCREENMAN->PlayStartSound(); GAMESTATE->m_pCurSong.Set( pSong ); - GAMESTATE->m_pCurSteps[0].Set( pSteps ); + GAMESTATE->m_pCurSteps[PLAYER_1].Set( pSteps ); GAMESTATE->m_pCurCourse.Set( NULL ); } break;