mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
stylesheet and export template have a dependency on the game
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@774 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -20,6 +20,15 @@ ExportTemplate::ExportTemplate()
|
||||
String ExportTemplate::typeNameStatic() { return _("export-template"); }
|
||||
String ExportTemplate::typeName() const { return _("export-template"); }
|
||||
|
||||
void ExportTemplate::validate(Version) {
|
||||
if (!game) {
|
||||
throw Error(_ERROR_("no game specified for export template"));
|
||||
}
|
||||
// an export template depends on the game it is made for
|
||||
requireDependency(game.get());
|
||||
}
|
||||
|
||||
|
||||
IMPLEMENT_REFLECTION(ExportTemplate) {
|
||||
REFLECT_BASE(Packaged);
|
||||
REFLECT(game);
|
||||
|
||||
Reference in New Issue
Block a user