use standard functions
This commit is contained in:
@@ -704,7 +704,7 @@ void Song::Save()
|
||||
{
|
||||
CString sOldPath = m_sSongDir + arrayOldFileNames[i];
|
||||
CString sNewPath = sOldPath + ".old";
|
||||
MoveFile( sOldPath, sNewPath );
|
||||
rename( sOldPath, sNewPath );
|
||||
}
|
||||
|
||||
ReCalculateRadarValuesAndLastBeat();
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "SongCacheIndex.h"
|
||||
#include "RageLog.h"
|
||||
#include "RageUtil.h"
|
||||
@@ -32,7 +35,7 @@ void SongCacheIndex::ReadCacheIndex()
|
||||
CStringArray asCacheFileNames;
|
||||
GetDirListing( "Cache/*", asCacheFileNames );
|
||||
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
||||
DeleteFile( "Cache/" + asCacheFileNames[i] );
|
||||
remove( "Cache/" + asCacheFileNames[i] );
|
||||
CacheIndex.Reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user