mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
make custom sets directory configurable (#4047)
This commit is contained in:
parent
feee9cc328
commit
964207d04f
6 changed files with 40 additions and 4 deletions
|
|
@ -203,7 +203,6 @@ SettingsCache::SettingsCache()
|
|||
} else {
|
||||
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
|
||||
}
|
||||
// this has never been exposed as an user-configurable setting
|
||||
customCardDatabasePath = getSafeConfigPath("paths/customsets", dataPath + "/customsets/");
|
||||
|
||||
cardDatabasePath = getSafeConfigFilePath("paths/carddatabase", dataPath + "/cards.xml");
|
||||
|
|
@ -387,6 +386,12 @@ void SettingsCache::setReplaysPath(const QString &_replaysPath)
|
|||
settings->setValue("paths/replays", replaysPath);
|
||||
}
|
||||
|
||||
void SettingsCache::setCustomCardDatabasePath(const QString &_customCardDatabasePath)
|
||||
{
|
||||
customCardDatabasePath = _customCardDatabasePath;
|
||||
settings->setValue("paths/customsets", customCardDatabasePath);
|
||||
}
|
||||
|
||||
void SettingsCache::setPicsPath(const QString &_picsPath)
|
||||
{
|
||||
picsPath = _picsPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue