FS2_Open
Open source remastering of the Freespace 2 engine
version.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef __FS2_VERSIONING_HEADER_FILE
13 #define __FS2_VERSIONING_HEADER_FILE
14 
15 #include "globalincs/vmallocator.h"
16 
17 // ----------------------------------------------------------------------------------------------------------------
18 // VERSION DEFINES/VARS
19 //
20 
21 // Here are the version defines.
22 // Gets displayed as MAJOR.MINOR, or 1.21 if MAJOR = 1, MINOR = 21.
23 // Prior to release, MAJOR should be zero. After release, it should be 1. Probably never increase to 2 as that could
24 // cause confusion with a sequel.
25 // MINOR should increase by 1 for each minor upgrade and by 10 for major upgrades.
26 // With each rev we send, we should increase MINOR.
27 // Version history (full version):
28 // 1.0 Initial US/UK release
29 // 1.01 Patch for Win95 volume label bug
30 // 1.20 German release version
31 
32 
33 // fs2_open version numbers:
34 // the first version is 3.0 :-)
35 // Major.Minor.Bugfix
36 
37 #define FS_VERSION_MAJOR 3 // major version
38 #define FS_VERSION_MINOR 7 // increase by 1 for minor revs
39 #define FS_VERSION_BUILD 5 // bugfix release
40 #define FS_VERSION_REVIS 000000 // SVN revision
41 //#define FS_VERSION_IDENT NOX("custom") // special build release identifier, must be a string (don't define unless it's supposed to be used!!)
42 
43 namespace version
44 {
55  bool check_at_least(int major, int minor, int build, int revision);
56 
65  SCP_string format_version(int major, int minor, int build, int revision);
66 }
67 
68 #endif
std::basic_string< char, std::char_traits< char >, std::allocator< char > > SCP_string
Definition: vmallocator.h:21
SCP_string format_version(int major, int minor, int build, int revision)
Returns the string representation of the passed version.
Definition: version.cpp:75
bool check_at_least(int major, int minor, int build, int revision)
Checks if the current version is at least the given version.
Definition: version.cpp:15