mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 19:40:30 -05:00
Update configuration path to be backwards compatible (#4620)
* Update configuration path to be backwards compatible Windows users have used AppData/Local/Cockatrice, whereas the new system was using AppData/Roaming/Cockatrice. This reverts the behavior in a Qt5/6 way.
This commit is contained in:
@@ -18,7 +18,7 @@ QString SettingsCache::getDataPath()
|
||||
if (isPortableBuild)
|
||||
return qApp->applicationDirPath() + "/data";
|
||||
else
|
||||
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||
}
|
||||
|
||||
QString SettingsCache::getSettingsPath()
|
||||
|
||||
@@ -45,6 +45,6 @@ QString SettingsCache::guessConfigurationPath()
|
||||
return guessFileName;
|
||||
#endif
|
||||
|
||||
guessFileName = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/" + fileName;
|
||||
guessFileName = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + "/" + fileName;
|
||||
return guessFileName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user