Danbias/Code/Game/DanBiasLauncher/Launcher.cpp

33 lines
814 B
C++
Raw Normal View History

2013-12-03 12:07:37 +01:00
/////////////////////////////////////////////////
// Launcher to launch Danbias server or client //
/////////////////////////////////////////////////
#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)
{
if(SetDllDirectory(L"..\\DLL") == FALSE)
{
return cmdShow;
}
2013-12-03 12:07:37 +01:00
// Game client starter code goes here
DanBias::DanBiasGameDesc gameDesc;
2013-12-16 11:08:10 +01:00
gameDesc.port = 15151;
//gameDesc.IP = "193.11.184.196";
2013-12-20 11:10:36 +01:00
gameDesc.IP = "193.11.184.31";
//gameDesc.IP = "127.0.0.1";
gameDesc.hinst = hinst;
gameDesc.nCmdShow = cmdShow;
if( DanBias::DanBiasGame::Initiate(gameDesc) == DanBias::DanBiasClientReturn_Sucess)
{
DanBias::DanBiasGame::Run();
DanBias::DanBiasGame::Release();
}
2013-12-03 12:07:37 +01:00
return cmdShow;
}