From 6eb201b70b22a8951b1f4864d4c1d937986b5436 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 14 Feb 2003 06:59:56 +0000 Subject: [PATCH] use standard functions --- stepmania/src/Song.cpp | 2 +- stepmania/src/SongCacheIndex.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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