Only save config if changes are made.

This commit is contained in:
StackZ
2020-03-09 16:25:56 +01:00
parent 1a20cc50f3
commit becb99cdd3
4 changed files with 26 additions and 3 deletions
+3 -1
View File
@@ -49,7 +49,7 @@ extern u32 selected;
extern u32 unselected;
extern int AutobootWhat;
bool changeBackState = false;
extern bool changesMade;
C2D_SpriteSheet appStoreSheet;
// Parse informations like URL, Title, Author, Description.
@@ -515,6 +515,7 @@ void UniStore::SubMenuLogic(u32 hDown, u32 hHeld, touchPosition touch) {
std::string tempStore = selectFilePath(Lang::get("SELECT_STORE_PATH"), {});
if (tempStore != "") {
Config::StorePath = tempStore;
changesMade = true;
}
break;
}
@@ -549,6 +550,7 @@ void UniStore::SubMenuLogic(u32 hDown, u32 hHeld, touchPosition touch) {
std::string tempStore = selectFilePath(Lang::get("SELECT_STORE_PATH"), {});
if (tempStore != "") {
Config::StorePath = tempStore;
changesMade = true;
}
}
}