mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-24 07:09:19 -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:
parent
a8e1dc3b18
commit
6b86e4d463
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user