diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-02-17 11:30:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-02-17 11:30:53 (GMT) |
| commit | 5beb4255c8972cf997c72e011db6afbd77d5be48 (patch) | |
| tree | cf7e2623e711ee6de4f3e46d764fbdba20fc26cd /src/client/GameSave.cpp | |
| parent | 76ef237f46adac7f97ec418c468548bd335d0b4b (diff) | |
| download | powder-5beb4255c8972cf997c72e011db6afbd77d5be48.zip powder-5beb4255c8972cf997c72e011db6afbd77d5be48.tar.gz | |
Tag origin version info in save files
Diffstat (limited to 'src/client/GameSave.cpp')
| -rw-r--r-- | src/client/GameSave.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 53736ca..d3ada65 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -1942,6 +1942,17 @@ char * GameSave::serialiseOPS(int & dataLength) } bson_init(&b); + bson_append_start_object(&b, "origin"); + bson_append_int(&b, "majorVersion", SAVE_VERSION); + bson_append_int(&b, "minorVersion", MINOR_VERSION); + bson_append_int(&b, "buildNum", MINOR_VERSION); + bson_append_int(&b, "snapshotId", MINOR_VERSION); + bson_append_string(&b, "releaseType", IDENT_RELTYPE); + bson_append_string(&b, "platform", IDENT_PLATFORM); + bson_append_string(&b, "builtType", IDENT_BUILD); + bson_append_finish_object(&b); + + bson_append_bool(&b, "waterEEnabled", waterEEnabled); bson_append_bool(&b, "legacyEnable", legacyEnable); bson_append_bool(&b, "gravityEnable", gravityEnable); |
