mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Trying to fix the version not showing correctly
This commit is contained in:
parent
1167c4be41
commit
0ca70180cf
|
@ -2331,6 +2331,11 @@ void GuiMenu::addVersionInfo()
|
||||||
|
|
||||||
const std::string applicationName {"RetroDECK"};
|
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(IS_PRERELEASE)
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
|
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
|
||||||
|
@ -2344,10 +2349,6 @@ void GuiMenu::addVersionInfo()
|
||||||
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
|
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
|
||||||
std::to_string(ANDROID_VERSION_CODE));
|
std::to_string(ANDROID_VERSION_CODE));
|
||||||
#else
|
#else
|
||||||
std::ifstream file("/app/retrodeck/version");
|
|
||||||
std::string version;
|
|
||||||
std::getline(file, version);
|
|
||||||
file.close();
|
|
||||||
#undef PROGRAM_VERSION_STRING
|
#undef PROGRAM_VERSION_STRING
|
||||||
#define PROGRAM_VERSION_STRING version.c_str()
|
#define PROGRAM_VERSION_STRING version.c_str()
|
||||||
std::cout << PROGRAM_VERSION_STRING << std::endl;
|
std::cout << PROGRAM_VERSION_STRING << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue