mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
mac patches
This commit is contained in:
parent
0d63bb7316
commit
4f13c01e12
6 changed files with 43 additions and 6 deletions
|
|
@ -492,15 +492,19 @@ void CardDatabase::picDownloadChanged()
|
|||
}
|
||||
}
|
||||
|
||||
bool CardDatabase::loadCardDatabase()
|
||||
bool CardDatabase::loadCardDatabase(const QString &path)
|
||||
{
|
||||
QString cardDatabasePath = settingsCache->getCardDatabasePath();
|
||||
if (!cardDatabasePath.isEmpty())
|
||||
loadSuccess = loadFromFile(cardDatabasePath);
|
||||
if (!path.isEmpty())
|
||||
loadSuccess = loadFromFile(path);
|
||||
else loadSuccess = false;
|
||||
return loadSuccess;
|
||||
}
|
||||
|
||||
bool CardDatabase::loadCardDatabase()
|
||||
{
|
||||
return loadCardDatabase(settingsCache->getCardDatabasePath());
|
||||
}
|
||||
|
||||
QStringList CardDatabase::getAllColors() const
|
||||
{
|
||||
QSet<QString> colors;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue