2013-12-03 12:07:37 +01:00
|
|
|
/////////////////////////////////////////////////
|
|
|
|
// Launcher to launch Danbias server or client //
|
|
|
|
/////////////////////////////////////////////////
|
2013-12-04 11:32:43 +01:00
|
|
|
#define NOMINMAX
|
2013-12-03 12:07:37 +01:00
|
|
|
#include <Windows.h>
|
2013-12-13 23:47:16 +01:00
|
|
|
#include <vld.h>
|
2013-12-03 12:07:37 +01:00
|
|
|
|
2013-12-19 13:35:56 +01:00
|
|
|
#include "DanBiasGame.h"
|
2013-12-03 12:07:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
int WINAPI WinMain( HINSTANCE hinst, HINSTANCE prevInst, PSTR cmdLine, int cmdShow)
|
|
|
|
{
|
2013-12-04 11:32:43 +01:00
|
|
|
if(SetDllDirectory(L"..\\DLL") == FALSE)
|
|
|
|
{
|
|
|
|
return cmdShow;
|
|
|
|
}
|
2013-12-03 12:07:37 +01:00
|
|
|
// Game client starter code goes here
|
2013-12-04 11:32:43 +01:00
|
|
|
DanBias::DanBiasGameDesc gameDesc;
|
2013-12-16 11:08:10 +01:00
|
|
|
gameDesc.port = 15151;
|
2014-01-07 10:26:09 +01:00
|
|
|
//gameDesc.port = 15152;
|
2014-01-23 14:28:53 +01:00
|
|
|
//gameDesc.IP = "193.11.184.109";
|
2013-12-21 17:37:30 +01:00
|
|
|
//gameDesc.IP = "193.11.184.31";
|
2014-01-20 15:47:52 +01:00
|
|
|
//gameDesc.IP = "194.47.150.56";
|
2013-12-21 17:37:30 +01:00
|
|
|
gameDesc.IP = "127.0.0.1";
|
2013-12-04 11:32:43 +01:00
|
|
|
gameDesc.hinst = hinst;
|
|
|
|
gameDesc.nCmdShow = cmdShow;
|
|
|
|
|
2014-02-12 17:20:42 +01:00
|
|
|
if( DanBias::DanBiasGame::Initiate(gameDesc) == DanBias::DanBiasClientReturn_Success )
|
2013-12-04 11:32:43 +01:00
|
|
|
{
|
|
|
|
DanBias::DanBiasGame::Run();
|
|
|
|
DanBias::DanBiasGame::Release();
|
|
|
|
}
|
2013-12-03 12:07:37 +01:00
|
|
|
|
2014-02-13 09:45:45 +01:00
|
|
|
return 0;
|
2013-12-03 12:07:37 +01:00
|
|
|
}
|