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