mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 23:49:03 +02:00
- added logic to delete old texture after doing a model texture conversion
This commit is contained in:
@@ -72,11 +72,8 @@ static size_t my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf ("===> FTP Client thread CANCELLED, deleting file for writing [%s]\n",fullFilePath.c_str());
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"===> FTP Client thread CANCELLED, deleting file for writing [%s]\n",fullFilePath.c_str());
|
||||
|
||||
#ifdef WIN32
|
||||
_unlink(fullFilePath.c_str());
|
||||
#else
|
||||
unlink(fullFilePath.c_str());
|
||||
#endif
|
||||
|
||||
removeFile(fullFilePath);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -311,11 +308,7 @@ FTP_Client_ResultType FTPClientThread::getMapFromServer(string mapFileName, stri
|
||||
ftpfile.stream = NULL;
|
||||
}
|
||||
if(result != ftp_crt_SUCCESS) {
|
||||
#ifdef WIN32
|
||||
_unlink(destFile.c_str());
|
||||
#else
|
||||
unlink(destFile.c_str());
|
||||
#endif
|
||||
removeFile(destFile);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user