Skip to content

Commit

Permalink
Fix packs downloading into root
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Oct 7, 2018
1 parent 1900c7c commit 34effcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ DownloadManager::UpdatePacks(float fDeltaSeconds)
string
Download::MakeTempFileName(string s)
{
return DL_DIR + Basename(s);
return Basename(s);
}
bool
DownloadManager::LoggedIn()
Expand Down Expand Up @@ -1780,7 +1780,7 @@ Download::Download(string url, string filename, function<void(Download*)> done)
Done = done;
m_Url = url;
handle = initBasicCURLHandle();
m_TempFileName = filename != "" ? filename : MakeTempFileName(url);
m_TempFileName = DL_DIR + (filename != "" ? filename : MakeTempFileName(url));
auto opened = p_RFWrapper.file.Open(m_TempFileName, 2);
ASSERT(opened);
DLMAN->EncodeSpaces(m_Url);
Expand Down

0 comments on commit 34effcc

Please sign in to comment.