mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix relative path for image download & settings
This commit is contained in:
parent
1e2d5b0693
commit
be7efa98cf
4 changed files with 33 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "settingscache.h"
|
||||
#include <QSettings>
|
||||
#include <QFile>
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include <QStandardPaths>
|
||||
#else
|
||||
|
|
@ -9,7 +10,7 @@
|
|||
|
||||
QString SettingsCache::getSettingsPath()
|
||||
{
|
||||
QString file = "";
|
||||
QString file = "settings/";
|
||||
|
||||
#ifndef PORTABLE_BUILD
|
||||
#if QT_VERSION >= 0x050000
|
||||
|
|
@ -17,10 +18,10 @@ QString SettingsCache::getSettingsPath()
|
|||
#else
|
||||
file = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
||||
#endif
|
||||
#endif
|
||||
file.append("/settings/");
|
||||
#endif
|
||||
|
||||
return file;
|
||||
return file;
|
||||
}
|
||||
|
||||
void SettingsCache::translateLegacySettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue