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

Download 3DS 7z instead of main one #111

Merged
merged 1 commit into from
Oct 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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