From 34b00ee02a7ecc361eeeca3a795c2b82856adc8a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 22 Apr 2004 08:03:02 +0000 Subject: [PATCH] fix .sig files not written --- stepmania/src/Profile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 40185f5228..965561dbe2 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -556,6 +556,10 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const xml.AppendChild( SaveAwardsCreateNode() ); xml.AppendChild( SaveLastScoresCreateNode() ); bool bSaved = xml.SaveToFile(fn); + + // Update file cache, or else IsAFile in CryptManager won't see this new file. + FILEMAN->FlushDirCache( sDir ); + if( bSaved && bSignData ) { CString sStatsXmlSigFile = fn+SIGNATURE_APPEND;