Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Download 3DS 7z instead of main one (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicpkmn11 committed Oct 8, 2020
1 parent b48e42a commit 57685f6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions source/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ void updateTWiLight(std::string commit) {
showProgressBar = true;
progressBarType = 0;
createThread((ThreadFunc)displayProgressBar);
if(downloadToFile("https://github.com/TWLBot/Builds/blob/"+commit+"/TWiLightMenu.7z?raw=true", "/TWiLightMenu-nightly.7z") != 0) {
if(downloadToFile("https://github.com/TWLBot/Builds/blob/"+commit+"/TWiLightMenu-3DS.7z?raw=true", "/TWiLightMenu-nightly.7z") != 0) {
showProgressBar = false;
downloadFailed();
return;
Expand All @@ -1283,10 +1283,7 @@ void updateTWiLight(std::string commit) {
snprintf(progressBarMsg, sizeof(progressBarMsg), "Extracting TWiLight Menu++...\n(Nightly)");
filesExtracted = 0;
progressBarType = 1;
extractArchive("/TWiLightMenu-nightly.7z", "_nds/", "/_nds/");
extractArchive("/TWiLightMenu-nightly.7z", "3DS - CFW users/", "/");
extractArchive("/TWiLightMenu-nightly.7z", "DSi&3DS - SD card users/", "/");

extractArchive("/TWiLightMenu-nightly.7z", "TWiLightMenu/", "/");

snprintf(progressBarMsg, sizeof(progressBarMsg), "Installing TWiLight Menu++ CIA...\n(Nightly)");
progressBarType = 2;
Expand All @@ -1307,7 +1304,7 @@ void updateTWiLight(std::string commit) {
showProgressBar = true;
progressBarType = 0;
createThread((ThreadFunc)displayProgressBar);
if(downloadFromRelease("https://github.com/DS-Homebrew/TWiLightMenu", "TWiLightMenu\\.7z", "/TWiLightMenu-release.7z") != 0) {
if(downloadFromRelease("https://github.com/DS-Homebrew/TWiLightMenu", "TWiLightMenu-3DS\\.7z", "/TWiLightMenu-release.7z") != 0) {
showProgressBar = false;
downloadFailed();
return;
Expand All @@ -1316,9 +1313,7 @@ void updateTWiLight(std::string commit) {
snprintf(progressBarMsg, sizeof(progressBarMsg), "Extracting TWiLight Menu++...\n(Release)");
filesExtracted = 0;
progressBarType = 1;
extractArchive("/TWiLightMenu-release.7z", "_nds/", "/_nds/");
extractArchive("/TWiLightMenu-release.7z", "3DS - CFW users/", "/");
extractArchive("/TWiLightMenu-release.7z", "DSi&3DS - SD card users/", "/");
extractArchive("/TWiLightMenu-release.7z", "", "/");

snprintf(progressBarMsg, sizeof(progressBarMsg), "Installing TWiLight Menu++ CIA...\n(Release)");
progressBarType = 2;
Expand Down

0 comments on commit 57685f6

Please sign in to comment.