'bool CopyFile2( CString sSrcFile, CString sDstFile ); // using "CopyFile" gives "unresolved external" link error in VC6'
use "FileCopy" instead
This commit is contained in:
@@ -1361,7 +1361,7 @@ void ProfileManager::SaveStatsWebPageToDir( CString sDir, MemoryCard mc )
|
||||
// Copy CSS file from theme. If the copy fails, oh well...
|
||||
//
|
||||
CString sStyleFile = THEME->GetPathToO("ProfileManager style.css");
|
||||
CopyFile2( sStyleFile, sDir+STYLE_CSS_FILE );
|
||||
FileCopy( sStyleFile, sDir+STYLE_CSS_FILE );
|
||||
LOG->Trace( "Done." );
|
||||
|
||||
}
|
||||
|
||||
@@ -1101,7 +1101,7 @@ void FileWrite(RageFile& f, float fWrite)
|
||||
f.PutLine( ssprintf("%f", fWrite) );
|
||||
}
|
||||
|
||||
bool CopyFile2( CString sSrcFile, CString sDstFile )
|
||||
bool FileCopy( CString sSrcFile, CString sDstFile )
|
||||
{
|
||||
RageFile in;
|
||||
if( !in.Open(sSrcFile, RageFile::READ) )
|
||||
|
||||
@@ -309,6 +309,6 @@ void FileWrite(RageFile& f, int iWrite);
|
||||
void FileWrite(RageFile& f, size_t uWrite);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user