2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 // $Header: r:/t2repos/thief2/src/version.c,v 1.24 2000/03/27 12:31:19 adurant Exp $
13 #include <dbmem.h> // must be last header!
16 #define SUFFIX "playtest"
23 #define FLAVOR "debug"
33 #define COMPILER_NAME "Watcom"
35 #define COMPILER_NAME "MSVC"
38 #define COMPILER_NAME ""
41 // For serial stamping, for evil pirates
42 // can't make it static, cause it whines
43 char gSerial
[32] = "LABEL ME";
45 // really would like to have the actual compiler and version in here, eh?
47 // Thief 2 version information.
48 static Version appVersion
=
55 COMPILER_NAME
" " FLAVOR
" " SUFFIX
, // suffix
58 // Deep Cover version information.
59 static Version appVersion
=
66 COMPILER_NAME
" " FLAVOR
" " SUFFIX
, // suffix
70 // this returns a pointer to the version structure
71 const Version
* AppVersion(void)
76 const char* Version2String(const Version
* v
)
80 const char* vn
= VersionNum2String(&v
->num
);
81 lg_sprintf(buf
,"%s %s %s",v
->phase
,vn
,v
->suffix
);
85 const char* VersionString(void)
87 return Version2String(&appVersion
);
90 bool VersionsEqual(const Version
* v1
, const Version
* v2
)
92 if (strcmp(v1
->phase
,v2
->phase
) != 0)
94 if (!VersionNumsEqual(&v1
->num
,&v2
->num
))
96 if (strcmp(v1
->suffix
,v2
->suffix
) != 0)