mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #143 from Learath2/pr_cleanup
Some cleanup and a tiny fix.
This commit is contained in:
commit
ec8a4b005f
|
@ -99,7 +99,7 @@ bool CFetcher::FetchFile(CFetchTask *pTask)
|
|||
if(pTask->m_pDest[i] == '/')
|
||||
{
|
||||
pTask->m_pDest[i] = '\0';
|
||||
m_pStorage->CreateFolder(pTask->m_pDest, 2);
|
||||
m_pStorage->CreateFolder(pTask->m_pDest, pTask->m_StorageType);
|
||||
pTask->m_pDest[i] = '/';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ public:
|
|||
~CFetcher();
|
||||
|
||||
virtual void QueueAdd(CFetchTask *pTask, const char *pUrl, const char *pDest, int StorageType = 2, void *pUser = 0, COMPFUNC pfnCompCb = 0, PROGFUNC pfnProgCb = 0);
|
||||
virtual long HTTPResponse(const char *pUrl);
|
||||
static void FetcherThread(void *pUser);
|
||||
bool FetchFile(CFetchTask *pTask);
|
||||
static void WriteToFile(char *pData, size_t size, size_t nmemb, void *pFile);
|
||||
|
|
|
@ -53,7 +53,6 @@ class IFetcher : public IInterface
|
|||
public:
|
||||
virtual bool Init() = 0;
|
||||
virtual void QueueAdd(CFetchTask *pTask,const char *pUrl, const char *pDest, int StorageType = 2, void *pUser = 0, COMPFUNC pfnCompCb = 0, PROGFUNC pfnProgCb = 0) = 0;
|
||||
virtual long HTTPResponse(const char *pUrl) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue