mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05:38 +00:00
Ifdef, broken variable assignement
This commit is contained in:
parent
8dfd82f4cf
commit
902d849003
|
@ -2355,10 +2355,15 @@ 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"};
|
const std::string applicationName =
|
||||||
|
#if defined(__RETRODECK__)
|
||||||
|
"RetroDECK";
|
||||||
|
#else
|
||||||
|
"ES-DE";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(__RETRODECK__)
|
#if defined(__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()) {
|
||||||
|
|
|
@ -695,10 +695,11 @@ int main(int argc, char* argv[])
|
||||||
Log::open();
|
Log::open();
|
||||||
{
|
{
|
||||||
|
|
||||||
const std::string applicationName {"ES-DE"};
|
const std::string applicationName =
|
||||||
|
|
||||||
#if defined(__RETRODECK__)
|
#if defined(__RETRODECK__)
|
||||||
applicationName = "RetroDECK";
|
"RetroDECK";
|
||||||
|
#else
|
||||||
|
"ES-DE";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
|
|
Loading…
Reference in a new issue