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

📄 main.cpp

📁 奇迹世界 部分源代码奇迹世界 部分源代码奇迹世界 部分源代码
💻 CPP
字号:
#include "stdafx.h"
#include "WorldServer.h"
#include <stdio.h>
#include <SolarSimpleConsole.h>
#include <SolarDump.h>

// Global
SolarSimpleConsole	g_Console;

#ifdef _DEBUG
#pragma comment( lib, "Network_d.lib" )
#pragma comment( lib, "Utility_d.lib" )
#else
#pragma comment( lib, "Network.lib" )
#pragma comment( lib, "Utility.lib" )
#endif


int APIENTRY WinMain(HINSTANCE hInstance,
					 HINSTANCE hPrevInstance,
					 LPSTR     lpCmdLine,
					 int       nCmdShow)
{
	//SolarDump dp( ".", MiniDumpWithFullMemory );
	SolarDump dp;

	// 能贾芒 檬扁拳
	CONSOLE_DESC cdesc;
	ZeroMemory( &cdesc, sizeof(cdesc) );
	cdesc.bUsingConsoleInput	= FALSE;
	cdesc.bUsingRedirect		= TRUE;
	g_Console.Init( &cdesc );

	//肺弊 檬扁拳
//	g_Log.Init(TRUE, 3, ".\\Log", "WorldServer.log");

	// 辑滚 檬扁拳
	if( !WorldServer::Instance()->Init() )
	{
		MessageOut(eCRITICAL_LOG,  "World server initialization failure!" );
	}
	else
	{
		MessageOut(eCRITICAL_LOG,  "==========================================" );
		MessageOut(eCRITICAL_LOG,  "  World Server Initialization Complete." );
		MessageOut(eCRITICAL_LOG,  "==========================================" );

		// 辑滚 矫累
		WorldServer::Instance()->Run();
	}

	// 辑滚 辆丰
	MessageOut(eCRITICAL_LOG,  "World server is terminated..." );

	WorldServer::Instance()->Release();

	// 能贾芒 辆丰
	g_Console.Release();
	
	return 0;
}

⌨️ 快捷键说明

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