From a406c5d95830b77d0acb6b4529e713b3f79f1bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 25 Sep 2025 11:15:51 +0200 Subject: [PATCH] Simplify add card. Took 25 minutes Took 8 minutes # Commit time for manual adjustment: # Took 16 minutes Took 7 seconds --- cockatrice/src/database/card_database.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/database/card_database.cpp b/cockatrice/src/database/card_database.cpp index 9ed89a11d..13d2ef1a3 100644 --- a/cockatrice/src/database/card_database.cpp +++ b/cockatrice/src/database/card_database.cpp @@ -110,9 +110,8 @@ LoadStatus CardDatabase::loadCardDatabases() // find all custom card databases, recursively & following symlinks // then load them alphabetically - auto customPaths = collectCustomDatabasePaths(); - for (int i = 0, n = customPaths.size(); i < n; ++i) { - const auto &path = customPaths.at(i); + for (int i = 0, n = collectCustomDatabasePaths().size(); i < n; ++i) { + const auto &path = collectCustomDatabasePaths().at(i); qCInfo(CardDatabaseLoadingLog) << "Loading Custom Set" << i << "(" << path << ")"; loadCardDatabase(path); } @@ -366,6 +365,8 @@ SetList CardDatabase::getSetList() const return result; } + + /** * Finds the PrintingInfo in the cardInfo that has the given uuid field. *