Skip to content

Commit 7790284

Browse files
committed
up
1 parent ce8b188 commit 7790284

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

kbe/src/lib/helper/debug_helper.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ void DebugHelper::clearBufferedLog(bool destroy)
280280
Mercury::Bundle::ObjPool().reclaimObject(bufferedLogPackets_);
281281
}
282282

283-
#ifdef NO_USE_LOG4CXX
284-
#else
285-
LOG4CXX_WARN(g_logger, "DebugHelper::clearBufferedLog()\n");
286-
#endif
287-
288283
Mercury::g_trace_packet = v;
289284

290285
hasBufferedLogPackets_ = 0;

kbe/src/server/loginapp/loginapp.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,18 @@ void Loginapp::onVersionNotMatch(Mercury::Channel* pChannel)
989989
Mercury::Bundle::ObjPool().reclaimObject(pBundle);
990990
}
991991

992+
//-------------------------------------------------------------------------------------
993+
void Loginapp::onScriptVersionNotMatch(Mercury::Channel* pChannel)
994+
{
995+
Mercury::Bundle* pBundle = Mercury::Bundle::ObjPool().createObject();
996+
997+
pBundle->newMessage(ClientInterface::onScriptVersionNotMatch);
998+
(*pBundle) << KBEVersion::scriptVersionString();
999+
(*pBundle).send(getNetworkInterface(), pChannel);
1000+
1001+
Mercury::Bundle::ObjPool().reclaimObject(pBundle);
1002+
}
1003+
9921004
//-------------------------------------------------------------------------------------
9931005
void Loginapp::importClientMessages(Mercury::Channel* pChannel)
9941006
{

kbe/src/server/loginapp/loginapp.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ class Loginapp : public ServerApp,
167167
// 引擎版本不匹配
168168
virtual void onVersionNotMatch(Mercury::Channel* pChannel);
169169

170+
// 引擎脚本层版本不匹配
171+
virtual void onScriptVersionNotMatch(Mercury::Channel* pChannel);
172+
170173
/** 网络接口
171174
baseapp同步自己的初始化信息
172175
startGlobalOrder: 全局启动顺序 包括各种不同组件

0 commit comments

Comments
 (0)