This commit is contained in:
Chris Danford
2005-12-06 12:41:33 +00:00
parent 24e113d102
commit 2d8b30e049
8 changed files with 66 additions and 52 deletions
+3 -1
View File
@@ -258,7 +258,7 @@ void NotesWriterSM::GetEditFileContents( const Song *pSong, const Steps *pSteps,
CString NotesWriterSM::GetEditFileName( const Song *pSong, const Steps *pSteps )
{
// guaranteed to be a unique name
return pSong->GetTranslitFullTitle() + " - " + pSteps->GetDescription();
return pSong->GetTranslitFullTitle() + " - " + pSteps->GetDescription() + ".edit";
}
bool NotesWriterSM::WriteEditFileToMachine( const Song *pSong, Steps *pSteps )
@@ -284,6 +284,8 @@ bool NotesWriterSM::WriteEditFileToMachine( const Song *pSong, Steps *pSteps )
int flags = RageFile::WRITE | RageFile::SLOW_FLUSH;
// TODO: Check to make sure that we're not clobering an existing file before opening.
RageFile f;
if( !f.Open( sPath, flags ) )
{