mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Undeclared variable fix
This commit is contained in:
parent
ca43dbc9b0
commit
869d4cb8f6
|
@ -2355,8 +2355,10 @@ void GuiMenu::addVersionInfo()
|
||||||
mVersion.setAutoCalcExtent(glm::ivec2 {0, 0});
|
mVersion.setAutoCalcExtent(glm::ivec2 {0, 0});
|
||||||
mVersion.setColor(mMenuColorTertiary);
|
mVersion.setColor(mMenuColorTertiary);
|
||||||
|
|
||||||
|
const std::string applicationName {"ES-DE"};
|
||||||
|
|
||||||
#if defined(__RETRODECK__)
|
#if defined(__RETRODECK__)
|
||||||
const std::string applicationName {"RetroDECK"};
|
applicationName = "RetroDECK";
|
||||||
std::ifstream file("/app/retrodeck/version");
|
std::ifstream file("/app/retrodeck/version");
|
||||||
std::string version;
|
std::string version;
|
||||||
if (file.is_open() && std::getline(file, version) && !version.empty()) {
|
if (file.is_open() && std::getline(file, version) && !version.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue