'bool CopyFile2( CString sSrcFile, CString sDstFile ); // using "CopyFile" gives "unresolved external" link error in VC6'

use "FileCopy" instead
This commit is contained in:
Glenn Maynard
2003-12-21 05:59:52 +00:00
parent ba3ea672c3
commit 75a1048c75
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1361,7 +1361,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
// Copy CSS file from theme. If the copy fails, oh well... // Copy CSS file from theme. If the copy fails, oh well...
// //
CString sStyleFile = THEME->GetPathToO("ProfileManager style.css"); CString sStyleFile = THEME->GetPathToO("ProfileManager style.css");
CopyFile2( sStyleFile, sDir+STYLE_CSS_FILE ); FileCopy( sStyleFile, sDir+STYLE_CSS_FILE );
LOG->Trace( "Done." ); LOG->Trace( "Done." );
} }
+1 -1
View File
@@ -1101,7 +1101,7 @@ void FileWrite(RageFile& f, float fWrite)
f.PutLine( ssprintf("%f", fWrite) ); f.PutLine( ssprintf("%f", fWrite) );
} }
bool CopyFile2( CString sSrcFile, CString sDstFile ) bool FileCopy( CString sSrcFile, CString sDstFile )
{ {
RageFile in; RageFile in;
if( !in.Open(sSrcFile, RageFile::READ) ) if( !in.Open(sSrcFile, RageFile::READ) )
+1 -1
View File
@@ -309,6 +309,6 @@ void FileWrite(RageFile& f, int iWrite);
void FileWrite(RageFile& f, size_t uWrite); void FileWrite(RageFile& f, size_t uWrite);
void FileWrite(RageFile& f, float fWrite); void FileWrite(RageFile& f, float fWrite);
bool CopyFile2( CString sSrcFile, CString sDstFile ); // using "CopyFile" gives "unresolved external" link error in VC6. Grr. -Chris bool FileCopy( CString sSrcFile, CString sDstFile );
#endif #endif