From a0abe7c7b904b7a51f84e1c1825ec27044ce4341 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 23 Sep 2024 20:51:40 +0900 Subject: [PATCH] Revert "Trying to fix the version not showing correctly" This reverts commit 0ca70180cf93fbb4f6a4f74d389449ce9ec81487. --- es-app/src/guis/GuiMenu.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 37642e5d5..d221e39ef 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -2331,11 +2331,6 @@ void GuiMenu::addVersionInfo() const std::string applicationName {"RetroDECK"}; - std::ifstream file("/app/retrodeck/version"); - std::string version; - std::getline(file, version); - file.close(); - #if defined(IS_PRERELEASE) #if defined(__ANDROID__) mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" + @@ -2349,6 +2344,10 @@ void GuiMenu::addVersionInfo() mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" + std::to_string(ANDROID_VERSION_CODE)); #else + std::ifstream file("/app/retrodeck/version"); + std::string version; + std::getline(file, version); + file.close(); #undef PROGRAM_VERSION_STRING #define PROGRAM_VERSION_STRING version.c_str() std::cout << PROGRAM_VERSION_STRING << std::endl;