From aa8be8f1e7f10b967023f41c85aceb92ef2a10e8 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 22 Apr 2004 23:10:56 +0000 Subject: [PATCH] create Edits/ dir when saving profile --- stepmania/src/Profile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 264e923415..0f6d96fa74 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -591,6 +591,14 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const SaveStatsWebPageToDir( sDir ); + // create edits dir + CString sEditsTempFile = sDir + EDITS_SUBDIR + "temp"; + RageFile f; + f.Open( sDir + EDITS_SUBDIR + "temp", RageFile::WRITE ); + f.Close(); + + FILEMAN->Remove( sEditsTempFile ); + return true; }