diff --git a/romfs/lang/en/app.json b/romfs/lang/en/app.json index e9f807a..63c4c9d 100644 --- a/romfs/lang/en/app.json +++ b/romfs/lang/en/app.json @@ -40,5 +40,9 @@ "INSTALLED_REV": "Installed revision: ", "CURRENT_REV": "Current revision: ", "AUTHOR": "author: ", - "TITLE": "title: " + "TITLE": "title: ", + + "FUTURE_SCRIPT": "This Script is a Future Script.", + "OUTDATED_SCRIPT": "This Script is outdated.", + "UP-TO-DATE": "This Script is Up-To-Date." } diff --git a/source/screens/scriptBrowse.cpp b/source/screens/scriptBrowse.cpp index b6b7176..541a9ca 100644 --- a/source/screens/scriptBrowse.cpp +++ b/source/screens/scriptBrowse.cpp @@ -114,6 +114,13 @@ void ScriptBrowse::Draw(void) const { Gui::DrawStringCentered(0, 100, 0.7f, Config::TxtColor, Lang::get("AUTHOR") + std::string(infoJson[selection]["author"]), 400); Gui::DrawStringCentered(0, 120, 0.7f, Config::TxtColor, Lang::get("INSTALLED_REV") + std::to_string(int64_t(infoJson[selection]["curRevision"])), 400); Gui::DrawStringCentered(0, 140, 0.7f, Config::TxtColor, Lang::get("CURRENT_REV")+ std::to_string(int64_t(infoJson[selection]["revision"])), 400); + if(infoJson[selection]["curRevision"] < infoJson[selection]["revision"]) { + Gui::DrawStringCentered(0, 160, 0.7f, Config::TxtColor, Lang::get("OUTDATED_SCRIPT"), 400); + } else if(infoJson[selection]["curRevision"] == infoJson[selection]["revision"]) { + Gui::DrawStringCentered(0, 160, 0.7f, Config::TxtColor, Lang::get("UP-TO-DATE"), 400); + } else if(infoJson[selection]["curRevision"] > infoJson[selection]["revision"]) { + Gui::DrawStringCentered(0, 160, 0.7f, Config::TxtColor, Lang::get("FUTURE_SCRIPT"), 400); + } Gui::DrawBottom(); for(int i=0;i