mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Have CardDatabase::getPreferredPrintingInfo respect card provider ID overrides (pinned printings)
Took 13 minutes Took 37 seconds Took 10 seconds Took 10 seconds # Commit time for manual adjustment: # Took 30 seconds Took 15 seconds Took 8 minutes Took 21 seconds
This commit is contained in:
parent
dbd1d30ca8
commit
3ccb0cbb23
13 changed files with 97 additions and 38 deletions
|
|
@ -2,11 +2,19 @@
|
|||
#define MAIN_H
|
||||
|
||||
#include <libcockatrice/card/database/card_database.h>
|
||||
#include <libcockatrice/card/database/interface/noop_card_preference_provider.h">
|
||||
#include <libcockatrice/card/database/parser/cockatrice_xml_4.h>
|
||||
|
||||
class CardDatabaseConverter : public CardDatabase
|
||||
{
|
||||
public:
|
||||
explicit CardDatabaseConverter()
|
||||
{
|
||||
// Replace querier with one that ignores SettingsCache
|
||||
delete querier;
|
||||
querier = new CardDatabaseQuerier(this, this, QSharedPointer<NoopCardPreferenceProvider>::create());
|
||||
};
|
||||
|
||||
LoadStatus loadCardDatabase(const QString &path)
|
||||
{
|
||||
return loader->loadCardDatabase(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue