mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Tag origin version info in save files
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user