Subversion Repositories spk

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
// stdafx.cpp : source file that includes just the standard includes
2
// Creator.pch will be the pre-compiled header
3
// stdafx.obj will contain the pre-compiled type information
4
 
5
#include "stdafx.h"
6
 
7
 
8
	System::String ^GetVersionString()
9
	{
10
		return GetVersionString((float)PACKAGERVERSION, (int)PACKAGERBETA);
11
	}
12
	System::String ^GetVersionString(float version, int beta)
13
	{
191 cycrow 14
		System::String ^str = "V" + _US(Utils::WString::FromFloat(version, 2));
1 cycrow 15
		// beta version
16
		if ( beta > 0 )
17
			str += " (Beta " + beta + ")";
18
		// RC release
19
		else if ( beta < 0 )
20
			str += " (RC " + (0 - beta) + ")";
21
		return str;
22
	}
23