Revert "Trying to fix the version not showing correctly"

This reverts commit 0ca70180cf.
This commit is contained in:
XargonWan 2024-09-23 20:51:40 +09:00
parent 8efc939b6b
commit a0abe7c7b9

View file

@ -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;