diff --git a/source/screens/unistore.cpp b/source/screens/unistore.cpp index 70b2d51..440cad0 100644 --- a/source/screens/unistore.cpp +++ b/source/screens/unistore.cpp @@ -75,9 +75,9 @@ void UniStore::autobootLogic() { JSON = openStoreFile(); displayInformations = handleIfDisplayText(); const std::string sheetURL = storeInfo[0].storeSheet; - if (storeInfo[0].version == 0) { + if (storeInfo[0].version == 0 || storeInfo[0].version == 1) { Gui::setScreen(std::make_unique(JSON, sheetURL, displayInformations), config->screenFade(), true); - } else if (storeInfo[0].version == 1) { + } else if (storeInfo[0].version == 2) { Gui::setScreen(std::make_unique(JSON, sheetURL), config->screenFade(), true); } else { Msg::DisplayWarnMsg(Lang::get("UNISTORE_NOT_SUPPORTED")); @@ -593,9 +593,9 @@ void UniStore::StoreSelectionLogic(u32 hDown, u32 hHeld, touchPosition touch) { displayInformations = handleIfDisplayText(); const std::string sheetURL = storeInfo[Selection].storeSheet; - if (storeInfo[Selection].version == 0) { + if (storeInfo[Selection].version == 0 || storeInfo[Selection].version == 1) { Gui::setScreen(std::make_unique(JSON, sheetURL, displayInformations), config->screenFade(), true); - } else if (storeInfo[Selection].version == 1) { + } else if (storeInfo[Selection].version == 2) { Gui::setScreen(std::make_unique(JSON, sheetURL), config->screenFade(), true); } else { Msg::DisplayWarnMsg(Lang::get("UNISTORE_NOT_SUPPORTED")); @@ -629,9 +629,9 @@ void UniStore::StoreSelectionLogic(u32 hDown, u32 hHeld, touchPosition touch) { JSON = openStoreFile(); displayInformations = handleIfDisplayText(); const std::string sheetURL = storeInfo[screenPos + i].storeSheet; - if (storeInfo[screenPos + i].version == 0) { + if (storeInfo[screenPos + i].version == 0 || storeInfo[screenPos + i].version == 1) { Gui::setScreen(std::make_unique(JSON, sheetURL, displayInformations), config->screenFade(), true); - } else if (storeInfo[screenPos + i].version == 1) { + } else if (storeInfo[screenPos + i].version == 2) { Gui::setScreen(std::make_unique(JSON, sheetURL), config->screenFade(), true); } else { Msg::DisplayWarnMsg(Lang::get("UNISTORE_NOT_SUPPORTED")); @@ -650,9 +650,9 @@ void UniStore::StoreSelectionLogic(u32 hDown, u32 hHeld, touchPosition touch) { JSON = openStoreFile(); displayInformations = handleIfDisplayText(); const std::string sheetURL = storeInfo[screenPosList + i].storeSheet; - if (storeInfo[screenPosList + i].version == 0) { + if (storeInfo[screenPosList + i].version == 0 || storeInfo[screenPosList + i].version == 1) { Gui::setScreen(std::make_unique(JSON, sheetURL, displayInformations), config->screenFade(), true); - } else if (storeInfo[screenPosList + i].version == 1) { + } else if (storeInfo[screenPosList + i].version == 2) { Gui::setScreen(std::make_unique(JSON, sheetURL), config->screenFade(), true); } else { Msg::DisplayWarnMsg(Lang::get("UNISTORE_NOT_SUPPORTED"));