mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-02 16:49:05 +00:00
Don't call downloadFailed() in queue mode
That makes a waitMsg which starts a new frame... which is the same exact problem that caused the last "random" crashing xD Fixes #76
This commit is contained in:
@@ -182,12 +182,13 @@ Result ScriptUtils::downloadRelease(const std::string &repo, const std::string &
|
||||
}
|
||||
|
||||
if (downloadFromRelease("https://github.com/" + repo, file, out, includePrereleases) != 0) {
|
||||
if (isARG) showProgressBar = false;
|
||||
|
||||
downloadFailed();
|
||||
ret = FAILED_DOWNLOAD;
|
||||
|
||||
if (isARG) {
|
||||
showProgressBar = false;
|
||||
|
||||
downloadFailed();
|
||||
|
||||
threadJoin(thread, U64_MAX);
|
||||
threadFree(thread);
|
||||
}
|
||||
@@ -225,12 +226,13 @@ Result ScriptUtils::downloadFile(const std::string &file, const std::string &out
|
||||
}
|
||||
|
||||
if (downloadToFile(file, out) != 0) {
|
||||
if (isARG) showProgressBar = false;
|
||||
|
||||
downloadFailed();
|
||||
ret = FAILED_DOWNLOAD;
|
||||
|
||||
if (isARG) {
|
||||
showProgressBar = false;
|
||||
|
||||
downloadFailed();
|
||||
|
||||
threadJoin(thread, U64_MAX);
|
||||
threadFree(thread);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user