mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Make extension optional in --export command.
Added add_extension function Added ExportTemplate::byName Use ExportTemplate::byName in main
This commit is contained in:
@@ -24,7 +24,7 @@ DECLARE_POINTER_TYPE(Package);
|
||||
|
||||
/// A template for exporting sets to HTML or text format
|
||||
class ExportTemplate : public Packaged {
|
||||
public:
|
||||
public:
|
||||
ExportTemplate();
|
||||
|
||||
GameP game; ///< Game this template is for
|
||||
@@ -38,7 +38,9 @@ class ExportTemplate : public Packaged {
|
||||
virtual String typeName() const;
|
||||
Version fileVersion() const;
|
||||
virtual void validate(Version = app_version);
|
||||
private:
|
||||
/// Loads the export template with a particular name
|
||||
static ExportTemplateP byName(const String & name);
|
||||
private:
|
||||
DECLARE_REFLECTION();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user