diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 335b125c55..c051e6af3f 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -704,7 +704,7 @@ void Song::Save() { CString sOldPath = m_sSongDir + arrayOldFileNames[i]; CString sNewPath = sOldPath + ".old"; - MoveFile( sOldPath, sNewPath ); + rename( sOldPath, sNewPath ); } ReCalculateRadarValuesAndLastBeat(); diff --git a/stepmania/src/SongCacheIndex.cpp b/stepmania/src/SongCacheIndex.cpp index 3a14b11e41..0cdeb3f097 100644 --- a/stepmania/src/SongCacheIndex.cpp +++ b/stepmania/src/SongCacheIndex.cpp @@ -1,5 +1,8 @@ #include "stdafx.h" +#include +#include + #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