📄 main.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 + -