summaryrefslogtreecommitdiff
path: root/utils/tfstats/main.cpp
blob: e7b703afd0cfbba3cac4865bdc4331433e7ab2ee (plain) (blame)
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
30
31
32
33
34
35
36
37
38
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: dummy main.cpp
//
// $Workfile:     $
// $Date:         $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//

#include "TFStatsApplication.h"


//------------------------------------------------------------------------------------------------------
// Function:	main
// Purpose:	dummy main. passes off execution to TFstats main
// Input:	argc - argument count
//				argv[] - argument list
//------------------------------------------------------------------------------------------------------

void main(int argc, const char* argv[])
{
	//make OS application object, and operating system interface
	g_pApp=new CTFStatsApplication;
	g_pApp->majorVer=1;
	g_pApp->minorVer=5;

#ifdef WIN32
	g_pApp->os=new CTFStatsWin32Interface();
#else
	g_pApp->os=new CTFStatsLinuxInterface();
#endif
	//hand off execution to real main
	g_pApp->main(argc,argv);
}