mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Load additional xml sets from $userprofile/customsets/
This commit is contained in:
parent
292d730ca7
commit
b566bf4a19
3 changed files with 20 additions and 0 deletions
|
|
@ -164,6 +164,13 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
if (!QDir().mkpath(settingsCache->getPicsPath() + "/CUSTOM"))
|
||||
qDebug() << "Could not create " + settingsCache->getPicsPath().toUtf8() + "/CUSTOM. Will fall back on default card images.";
|
||||
if (QDir().mkpath(dataDir + "/customsets"))
|
||||
{
|
||||
// if the dir exists (or has just been created)
|
||||
db->loadCustomCardDatabases(dataDir + "/customsets");
|
||||
} else {
|
||||
qDebug() << "Could not create " + dataDir + "/customsets folder.";
|
||||
}
|
||||
|
||||
if(settingsCache->getSoundPath().isEmpty() || !QDir(settingsCache->getSoundPath()).exists())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue