This commit is contained in:
aozhiwei 2023-05-15 21:55:33 +08:00
parent 07b3d684ff
commit 685a81bc54

View File

@ -55,13 +55,13 @@ bool App::Init(int argc, char* argv[])
if (!ParseOpt()) {
if (node_id <= 0) {
a8::XPrintf("gameserver启动失败,缺少-n参数\n", {});
a8::XPrintf("robotserver启动失败,缺少-n参数\n", {});
} else if (node_id > MAX_NODE_ID) {
a8::XPrintf("gameserver启动失败,-n参数不能大于%d\n", {MAX_NODE_ID});
a8::XPrintf("robotserver启动失败,-n参数不能大于%d\n", {MAX_NODE_ID});
} else if (instance_id <= 0) {
a8::XPrintf("gameserver启动失败,缺少-i参数\n", {});
a8::XPrintf("robotserver启动失败,缺少-i参数\n", {});
} else if (instance_id > MAX_INSTANCE_ID) {
a8::XPrintf("gameserver启动失败,-i参数不能大于%d\n", {MAX_INSTANCE_ID});
a8::XPrintf("robotserver启动失败,-i参数不能大于%d\n", {MAX_INSTANCE_ID});
}
return false;
}
@ -69,7 +69,7 @@ bool App::Init(int argc, char* argv[])
#ifdef DEBUG
debug_mode = 1;
#endif
a8::XPrintf("gameserver starting node_id: %d instance_id:%d pid:%d game_id:%d debug_mode:%d\n",
a8::XPrintf("robotserver starting node_id: %d instance_id:%d pid:%d game_id:%d debug_mode:%d\n",
{
node_id,
instance_id,
@ -144,7 +144,7 @@ void App::UnInit()
int App::Run()
{
int ret = 0;
f8::UdpLog::Instance()->Info("gameserver running", {});
f8::UdpLog::Instance()->Info("robotserver running", {});
last_run_tick_ = a8::XGetTickCount();
int delta_time = 0;
while (!terminated) {