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:
twanvl
2008-06-28 16:31:40 +00:00
parent c0669fb658
commit 64b7912835
26 changed files with 60 additions and 28 deletions
+5 -2
View File
@@ -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();
};