Skip to content

Commit

Permalink
New preference: downloadPacksToAdditionalSongs
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Mar 27, 2018
1 parent 52b27cf commit 97a0b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static Preference<unsigned int> maxDLPerSecondGameplay("maximumBytesDownloadedPe
static Preference<RString> packListURL("packListURL", "https://api.etternaonline.com/v1/pack_list");
static Preference<RString> serverURL("UploadServerURL", "https://api.etternaonline.com/v1/");
static Preference<unsigned int> automaticSync("automaticScoreSync", 1);
static Preference<unsigned int> downloadPacksToAdditionalSongs("downloadPacksToAdditionalSongs", 0);
static const string TEMP_ZIP_MOUNT_POINT = "/@temp-zip/";
static const string DL_DIR = SpecialFiles::CACHE_DIR + "Downloads/";

Expand Down Expand Up @@ -117,6 +118,7 @@ bool DownloadManager::InstallSmzip(const string &sZipFile)
sort(vsPrettyFiles.begin(), vsPrettyFiles.end());
}
string sResult = "Success installing " + sZipFile;
string extractTo = downloadPacksToAdditionalSongs ? "AdditionalSongs/" : "Songs/";
FOREACH_CONST(string, vsFiles, sSrcFile)
{
string sDestFile = *sSrcFile;
Expand Down

0 comments on commit 97a0b5a

Please sign in to comment.