From 6c26f2ae05043de9cde1b211c94cc5f9e9296e10 Mon Sep 17 00:00:00 2001 From: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com> Date: Mon, 9 Mar 2020 16:28:56 +0100 Subject: [PATCH] Whoops, forgot about the autoboot ones. --- source/screens/scriptlist.cpp | 4 +++- source/screens/unistore.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/screens/scriptlist.cpp b/source/screens/scriptlist.cpp index 76ccd81..bc101c5 100644 --- a/source/screens/scriptlist.cpp +++ b/source/screens/scriptlist.cpp @@ -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) { diff --git a/source/screens/unistore.cpp b/source/screens/unistore.cpp index 407dc74..06b75c8 100644 --- a/source/screens/unistore.cpp +++ b/source/screens/unistore.cpp @@ -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; } } }