diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-08-24 21:14:46 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-08-24 21:14:46 +0200 |
commit | 31e83b2bf3cdc0a1562d6345a060680af49b79d6 (patch) | |
tree | ffe672a2beec627da544260b8bcaf7365fcc4844 /src/frontend | |
parent | 30fc6bbc09bfc1e57044b766813e57733777948a (diff) |
fix config file lookup. fixes #717
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index 05a0c2d..b9d3235 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -77,7 +77,7 @@ u8 PacketBuffer[2048]; void Init(int argc, char** argv) { -#if defined(__WIN32__) || defined(UNIX_PORTABLE) +#if defined(__WIN32__) || defined(PORTABLE) if (argc > 0 && strlen(argv[0]) > 0) { int len = strlen(argv[0]); @@ -167,7 +167,7 @@ FILE* OpenLocalFile(const char* path, const char* mode) else { #ifdef PORTABLE - fullpath = path; + fullpath = QString(EmuDirectory) + QDir::separator() + path; #else // Check user configuration directory QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation)); |