diff --git a/gen/configfile.cpp b/gen/configfile.cpp index fea2e32a..4c3c2898 100644 --- a/gen/configfile.cpp +++ b/gen/configfile.cpp @@ -71,9 +71,9 @@ bool ConfigFile::read(const char* argv0, void* mainAddr, const char* filename) if (!p.exists()) { #if _WIN32 - p = ConfigGetExePath(p); - exeDirectoryName = p.toString(); - #else + p = ConfigGetExePath(p); + exeDirectoryName = p.toString(); + #else // 4) try next to the executable p = sys::Path::GetMainExecutable(argv0, mainAddr); p.eraseComponent();