FS2_Open
Open source remastering of the Freespace 2 engine
version Namespace Reference

Functions

bool check_at_least (int major, int minor, int build, int revision)
 Checks if the current version is at least the given version. More...
 
SCP_string format_version (int major, int minor, int build, int revision)
 Returns the string representation of the passed version. More...
 

Function Documentation

bool version::check_at_least ( int  major,
int  minor,
int  build,
int  revision 
)

Checks if the current version is at least the given version.

Parameters
majorThe major version to check
minorThe minor version to check
buildThe build version to check
revisionThe revision version to check
Returns
true when we are at least the given version, false otherwise

Definition at line 15 of file version.cpp.

SCP_string version::format_version ( int  major,
int  minor,
int  build,
int  revision 
)

Returns the string representation of the passed version.

Parameters
majorThe major version to format
minorThe minor version to format
buildThe build version to format
revisionThe revision version to format
Returns
A string representation of the version number

Definition at line 75 of file version.cpp.