mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
A simple default "any card" pack if there are no packs specified in the game file
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1480 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -90,6 +90,16 @@ void Game::validate(Version v) {
|
||||
}
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user