Whoops, forgot about the autoboot ones.

This commit is contained in:
StackZ
2020-03-09 16:28:56 +01:00
parent becb99cdd3
commit 6c26f2ae05
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -473,6 +473,7 @@ void ScriptList::ListSelection(u32 hDown, u32 hHeld, touchPosition touch) {
if (Msg::promptMsg(Lang::get("DISABLE_AUTOBOOT"))) {
Config::autoboot = 0;
Config::AutobootFile = "";
changesMade = true;
}
} else {
if (dirContents[Selection].isDirectory) {
@@ -481,6 +482,7 @@ void ScriptList::ListSelection(u32 hDown, u32 hHeld, touchPosition touch) {
if (Msg::promptMsg(Lang::get("AUTOBOOT_SCRIPT"))) {
Config::AutobootFile = Config::ScriptPath + dirContents[Selection].name;
Config::autoboot = 2;
changesMade = true;
}
}
}
@@ -690,7 +692,7 @@ void ScriptList::SelectFunction(u32 hDown, u32 hHeld, touchPosition touch) {
Config::TxtColor = TextColor;
Config::SelectedColor = selected;
Config::UnselectedColor = unselected;
Config::save();
changesMade = true;
}
if (Config::viewMode == 0) {
+2
View File
@@ -745,6 +745,7 @@ void UniStore::StoreSelectionLogic(u32 hDown, u32 hHeld, touchPosition touch) {
if (Msg::promptMsg(Lang::get("DISABLE_AUTOBOOT"))) {
Config::autoboot = 0;
Config::AutobootFile = "";
changesMade = true;
}
} else {
if (dirContents[Selection].isDirectory) {
@@ -753,6 +754,7 @@ void UniStore::StoreSelectionLogic(u32 hDown, u32 hHeld, touchPosition touch) {
if (Msg::promptMsg(Lang::get("AUTOBOOT_STORE"))) {
Config::AutobootFile = Config::StorePath + dirContents[Selection].name;
Config::autoboot = 1;
changesMade = true;
}
}
}