mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Simplify add card.
Took 25 minutes Took 8 minutes # Commit time for manual adjustment: # Took 16 minutes Took 7 seconds
This commit is contained in:
parent
762ea47b8e
commit
a406c5d958
1 changed files with 4 additions and 3 deletions
|
|
@ -110,9 +110,8 @@ LoadStatus CardDatabase::loadCardDatabases()
|
||||||
|
|
||||||
// find all custom card databases, recursively & following symlinks
|
// find all custom card databases, recursively & following symlinks
|
||||||
// then load them alphabetically
|
// then load them alphabetically
|
||||||
auto customPaths = collectCustomDatabasePaths();
|
for (int i = 0, n = collectCustomDatabasePaths().size(); i < n; ++i) {
|
||||||
for (int i = 0, n = customPaths.size(); i < n; ++i) {
|
const auto &path = collectCustomDatabasePaths().at(i);
|
||||||
const auto &path = customPaths.at(i);
|
|
||||||
qCInfo(CardDatabaseLoadingLog) << "Loading Custom Set" << i << "(" << path << ")";
|
qCInfo(CardDatabaseLoadingLog) << "Loading Custom Set" << i << "(" << path << ")";
|
||||||
loadCardDatabase(path);
|
loadCardDatabase(path);
|
||||||
}
|
}
|
||||||
|
|
@ -366,6 +365,8 @@ SetList CardDatabase::getSetList() const
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the PrintingInfo in the cardInfo that has the given uuid field.
|
* Finds the PrintingInfo in the cardInfo that has the given uuid field.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue