Commit cb5b8ef0 authored by twanvl's avatar twanvl

A simple default "any card" pack if there are no packs specified in the game file

parent ad952b9a
...@@ -90,6 +90,16 @@ void Game::validate(Version v) { ...@@ -90,6 +90,16 @@ void Game::validate(Version v) {
} }
statistics_categories.insert(statistics_categories.begin(), cats.begin(), cats.end()); // push front statistics_categories.insert(statistics_categories.begin(), cats.begin(), cats.end()); // push front
} }
// automatic pack if there are none
if (pack_types.empty()) {
PackTypeP pack(new PackType);
pack->name = _("Any card");
pack->enabled = true;
pack->selectable = true;
pack->summary = true;
pack->filter = OptionalScript(_("true"));
pack_types.push_back(pack);
}
} }
void Game::initCardListColorScript() { void Game::initCardListColorScript() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment