⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server.cpp

📁 墨香最新私服
💻 CPP
字号:
// Server.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "ServerSystem.h"

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	char *sId, *eId, *sChannel;
	sId = strtok( lpCmdLine, " " );
	eId = strtok( NULL, " " );
	sChannel = strtok( NULL, " " );
	
	if( sId == "" || eId == "" )
		return 0;

	int channel = 0;
	if( sChannel != NULL )
		channel = atoi( sChannel );		

	g_pServerSystem = new CServerSystem;
	if( g_pServerSystem->Start( atoi(sId), atoi(eId), channel ) )
	{
		g_pServerSystem->End();
	}
	delete g_pServerSystem;
	g_pServerSystem = NULL;
	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -