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.
Xash3DArchive/launch/export.c

29 lines
713 B
C
Raw Normal View History

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"
2010-05-22 22:00:00 +02:00
// main DLL entry point
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
{
return TRUE;
}
2007-11-10 22:00:00 +01:00
/*
=================
2009-11-23 22:00:00 +01:00
Main Entry Point
2007-11-10 22:00:00 +01:00
=================
*/
2009-11-23 22:00:00 +01:00
DLLEXPORT int CreateAPI( const char *hostname, bool console )
2007-11-10 22:00:00 +01:00
{
2009-11-23 22:00:00 +01:00
com_strncpy( Sys.progname, hostname, sizeof( Sys.progname ));
Sys.hooked_out = console;
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;
}