summaryrefslogtreecommitdiff
path: root/GetVersion.h
blob: d830bef3e4d6ae7a9b8576f091c2919712a072d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

char VersionString[50]="";
char VersionStringWithBuild[50]="";
int Ver[4] = {Vers};
char TextVerstring[50] = "";

void GetVersionInfo(char * File)
{
#ifndef LINBPQ

	char isDebug[40]="";

#ifdef SPECIALVERSION
	strcat(isDebug, " ");
	strcat(isDebug, SPECIALVERSION);
#endif
#ifdef _DEBUG 
	strcat(isDebug, " Debug Build");
#endif

	sprintf(VersionString,"%d.%d.%d.%d%s", Ver[0], Ver[1], Ver[2], Ver[3], isDebug);

	sprintf(TextVerstring,"V%d.%d.%d.%d", Ver[0], Ver[1], Ver[2], Ver[3]);
	
	sprintf(VersionStringWithBuild,"%d.%d.%d Build %d %s", Ver[0], Ver[1], Ver[2], Ver[3], isDebug);

	return;
#endif
}