Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
#include "stdafx.h"
|
||||
#include "LogDispatch.h"
|
||||
|
||||
#include <Network/Packet/PacketCommand.h>
|
||||
#include <Network/Packet/PacketStruct/ServerPacket.h>
|
||||
#include <Network/Dispatch/GameLog/SendLogPacket.h>
|
||||
|
||||
#include <Utility/Setup/ServerSetup.h>
|
||||
|
||||
CLogDispatch::CLogDispatch(CSession& Session)
|
||||
: CRylServerDispatch(Session, 0xFFFFFFFF)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
CLogDispatch::~CLogDispatch()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CLogDispatch::Connected()
|
||||
{
|
||||
SendLogPacket::ServerLogin(m_SendStream, CServerSetup::GetInstance().GetServerID());
|
||||
}
|
||||
|
||||
void CLogDispatch::Disconnected()
|
||||
{
|
||||
ERRLOG0(g_Log, "<EFBFBD>α<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
GetDispatchTable().RemoveDispatch(this);
|
||||
}
|
||||
|
||||
bool CLogDispatch::DispatchPacket(PktBase* lpPktBase)
|
||||
{
|
||||
bool bResult = false;
|
||||
|
||||
switch(lpPktBase->GetCmd())
|
||||
{
|
||||
case CmdSysServerLogin:
|
||||
bResult = ProcessServerLoginAck(lpPktBase);
|
||||
break;
|
||||
|
||||
default:
|
||||
bResult = true;
|
||||
ERRLOG2(g_Log, "DP:0x%p/Cmd:0x%02x/Unknown Logpacket",
|
||||
this, lpPktBase->GetCmd());
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if(!bResult)
|
||||
{
|
||||
ERRLOG2(g_Log, "DP:0x%p/Cmd:0x%02x/Logpacket Process failed",
|
||||
this, lpPktBase->GetCmd());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool CLogDispatch::ProcessServerLoginAck(PktBase* lpPktBase)
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>..
|
||||
|
||||
if(0 == lpPktBase->GetError())
|
||||
{
|
||||
DETLOG0(g_Log, "<EFBFBD>α<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
GetDispatchTable().SetDispatch(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
ERRLOG0(g_Log, "<EFBFBD>α<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ῡ <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user