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>
|
|
|
|
|
// launcher.c - main engine launcher
|
|
|
|
|
//=======================================================================
|
|
|
|
|
|
|
|
|
|
#include "launch.h"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
=================
|
|
|
|
|
Base Entry Point
|
|
|
|
|
=================
|
|
|
|
|
*/
|
2007-12-11 22:00:00 +01:00
|
|
|
|
DLLEXPORT int CreateAPI( char *funcname, bool console )
|
2007-11-10 22:00:00 +01:00
|
|
|
|
{
|
|
|
|
|
// memeber name
|
2007-11-11 22:00:00 +01:00
|
|
|
|
com_strncpy( Sys.progname, funcname, 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;
|
|
|
|
|
}
|