File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -280,11 +280,6 @@ void DebugHelper::clearBufferedLog(bool destroy)
280
280
Mercury::Bundle::ObjPool ().reclaimObject (bufferedLogPackets_);
281
281
}
282
282
283
- #ifdef NO_USE_LOG4CXX
284
- #else
285
- LOG4CXX_WARN (g_logger, " DebugHelper::clearBufferedLog()\n " );
286
- #endif
287
-
288
283
Mercury::g_trace_packet = v;
289
284
290
285
hasBufferedLogPackets_ = 0 ;
Original file line number Diff line number Diff line change @@ -989,6 +989,18 @@ void Loginapp::onVersionNotMatch(Mercury::Channel* pChannel)
989
989
Mercury::Bundle::ObjPool ().reclaimObject (pBundle);
990
990
}
991
991
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
+
992
1004
// -------------------------------------------------------------------------------------
993
1005
void Loginapp::importClientMessages (Mercury::Channel* pChannel)
994
1006
{
Original file line number Diff line number Diff line change @@ -167,6 +167,9 @@ class Loginapp : public ServerApp,
167
167
// 引擎版本不匹配
168
168
virtual void onVersionNotMatch (Mercury::Channel* pChannel);
169
169
170
+ // 引擎脚本层版本不匹配
171
+ virtual void onScriptVersionNotMatch (Mercury::Channel* pChannel);
172
+
170
173
/* * 网络接口
171
174
baseapp同步自己的初始化信息
172
175
startGlobalOrder: 全局启动顺序 包括各种不同组件
You can’t perform that action at this time.
0 commit comments