forked from github/server
allow reading of JSON_REPORT_VERSION from future source release
This commit is contained in:
parent
0b3190605a
commit
3e1ae5e0f2
|
@ -1,3 +1,3 @@
|
|||
#define VERSION_MAJOR 3
|
||||
#define VERSION_MINOR 4
|
||||
#define VERSION_BUILD 6
|
||||
#define VERSION_BUILD 7
|
||||
|
|
|
@ -1382,7 +1382,7 @@ int readgame(const char *filename, int backup)
|
|||
assert(stream_version == STREAM_VERSION || !"unsupported data format");
|
||||
}
|
||||
assert(gdata.version >= MIN_VERSION || !"unsupported data format");
|
||||
assert(gdata.version <= RELEASE_VERSION || !"unsupported data format");
|
||||
assert(gdata.version <= MAX_VERSION || !"unsupported data format");
|
||||
|
||||
gdata.encoding = enc_gamedata;
|
||||
fstream_init(&strm, F);
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define AUTO_RACENAME_VERSION 345 /* NPC units with name==NULL will automatically get their race for a name */
|
||||
|
||||
#define MIN_VERSION INTPAK_VERSION /* minimal datafile we support */
|
||||
#define MAX_VERSION 346
|
||||
#define RELEASE_VERSION AUTO_RACENAME_VERSION /* current datafile */
|
||||
|
||||
#define STREAM_VERSION 2 /* internal encoding of binary files */
|
||||
|
|
Loading…
Reference in New Issue