No more issues I think

This commit is contained in:
mathusummut
2019-04-04 23:05:10 +02:00
parent 3d3c3f909f
commit 73cc3dcf4e
4 changed files with 6 additions and 31 deletions

View File

@@ -225,16 +225,15 @@ namespace Shared {
SDL_SetRelativeMouseMode(SDL_FALSE);
SDL_SetRelativeMouseMode(SDL_TRUE);
}
#ifndef WIN32
string icon_file = "";
#if defined(DATADIR)
if (fileExists(formatPath(TOSTRING(DATADIR)) + "glest.png")) {
icon_file = formatPath(TOSTRING(DATADIR)) + "glest.png";
} else if (fileExists(formatPath(TOSTRING(DATADIR)) + "glest.bmp")) {
icon_file = formatPath(TOSTRING(DATADIR)) + "glest.bmp";
if (fileExists(endPathWithSlash(formatPath(TOSTRING(DATADIR))) + "glest.png")) {
icon_file = endPathWithSlash(formatPath(TOSTRING(DATADIR))) + "glest.png";
} else if (fileExists(endPathWithSlash(formatPath(TOSTRING(DATADIR))) + "glest.bmp")) {
icon_file = endPathWithSlash(formatPath(TOSTRING(DATADIR))) + "glest.bmp";
}
#endif
if (icon_file == "" && fileExists("glest.png")) {