mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Incremented version number to 0.3.7
When saving files an older version number is used if that version of MSE would be able to open the set git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1011 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -133,8 +133,8 @@ class Package : public IntrusivePtrVirtualBase {
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void writeFile(const String& file, const T& obj) {
|
||||
Writer writer(openOut(file));
|
||||
void writeFile(const String& file, const T& obj, Version file_version) {
|
||||
Writer writer(openOut(file), file_version);
|
||||
writer.handle(obj);
|
||||
}
|
||||
|
||||
@@ -229,6 +229,8 @@ class Packaged : public Package {
|
||||
virtual String typeName() const = 0;
|
||||
/// Can be overloaded to do validation after loading
|
||||
virtual void validate(Version file_app_version);
|
||||
/// What file version should be used for writing files?
|
||||
virtual Version fileVersion() const = 0;
|
||||
|
||||
DECLARE_REFLECTION_VIRTUAL();
|
||||
|
||||
@@ -244,6 +246,7 @@ class Packaged : public Package {
|
||||
class IncludePackage : public Packaged {
|
||||
protected:
|
||||
String typeName() const;
|
||||
Version fileVersion() const;
|
||||
DECLARE_REFLECTION();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user