This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
2007-11-10 22:00:00 +01:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2007 <20>
|
2008-06-12 22:00:00 +02:00
|
|
|
|
// export.c - main engine launcher
|
2007-11-10 22:00:00 +01:00
|
|
|
|
//=======================================================================
|
|
|
|
|
|
|
|
|
|
#include "launch.h"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
=================
|
|
|
|
|
Base Entry Point
|
|
|
|
|
=================
|
|
|
|
|
*/
|
2008-07-30 22:00:00 +02:00
|
|
|
|
DLLEXPORT int CreateAPI( char *hostname, bool console )
|
2007-11-10 22:00:00 +01:00
|
|
|
|
{
|
|
|
|
|
// memeber name
|
2008-07-30 22:00:00 +02:00
|
|
|
|
com_strncpy( Sys.progname, hostname, sizeof(Sys.progname));
|
2007-12-11 22:00:00 +01:00
|
|
|
|
Sys.hooked_out = console; // set mode
|
2007-11-10 22:00:00 +01:00
|
|
|
|
|
|
|
|
|
Sys_Init();
|
2007-11-11 22:00:00 +01:00
|
|
|
|
Sys.Main();
|
|
|
|
|
Sys_Exit();
|
2007-11-10 22:00:00 +01:00
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|