See desc for more.

[MAKEFILE]: Properly use PATH for Bannertool and Makerom instead of hardcoded to the root directory on Windows.

[QUEUE SYSTEM]: Do not allow going to Home Menu if queue isn't done. Or better said: Show the prompt message with the side effects.
This commit is contained in:
StackZ
2021-04-19 09:30:59 +02:00
parent 65616e8f58
commit 2b4e67e469
3 changed files with 13 additions and 5 deletions
+4
View File
@@ -196,6 +196,10 @@ Result Init::MainLoop() {
if (!exiting) Gui::ScreenLogic(hDown, hHeld, touch, true, false);
if (aptCheckHomePressRejected()) {
if (Msg::promptMsg(Lang::get("FEATURE_SIDE_EFFECTS"))) aptSetHomeAllowed(true);
};
if (exiting) {
if (hDown & KEY_START) fullExit = true; // Make it optionally faster.
+4
View File
@@ -63,6 +63,7 @@ void QueueSystem::AddToQueue(nlohmann::json obj, const C2D_Image &icn, const std
svcGetThreadPriority(&prio, CUR_THREAD_HANDLE);
queueThread = threadCreate((ThreadFunc)QueueSystem::QueueHandle, NULL, 64 * 1024, prio - 1, -2, false);
aptSetHomeAllowed(false);
}
}
@@ -84,6 +85,7 @@ void QueueSystem::ClearQueue() {
Use this, to go back to the queue after the Request.
*/
void QueueSystem::Resume() {
aptSetHomeAllowed(false);
QueueSystem::Wait = false;
QueueRuns = true;
@@ -388,4 +390,6 @@ void QueueSystem::QueueHandle() {
ret = NONE; // Reset.
}
}
aptSetHomeAllowed(true);
}