Use GenericConfigLocation so files will be placed correctly in non-portable Windows builds

This commit is contained in:
Nadia Holmquist Pedersen 2020-06-03 17:01:10 +02:00
parent a4b88f0294
commit 924975f6db
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ FILE* OpenLocalFile(const char* path, const char* mode)
fullpath = path;
#else
// Check user configuration directory
QDir config(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation));
QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation));
config.mkdir("melonDS");
fullpath = config.absolutePath() + "/melonDS/";
fullpath.append(path);