Make updateSelf a optional boolean.

Should fix sometimes booting into TWiLight Menu++ for some reason.
This commit is contained in:
StackZ
2020-04-28 14:51:37 +02:00
parent 7d8fb7eb5d
commit 0980cc969e
6 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -106,12 +106,12 @@ Result ScriptHelper::removeFile(std::string file, std::string message) {
}
// Install a file.
void ScriptHelper::installFile(std::string file, std::string message) {
void ScriptHelper::installFile(std::string file, bool updatingSelf, std::string message) {
snprintf(progressBarMsg, sizeof(progressBarMsg), message.c_str());
showProgressBar = true;
progressBarType = 2;
Threads::create((ThreadFunc)displayProgressBar);
installCia(file.c_str());
installCia(file.c_str(), updatingSelf);
showProgressBar = false;
}