* Update structure for SMSG_ADDON_INFO and add some sort of basic handling for incorrect addon CRCs (anti-cheating).

* Fix CRLF in MovementHandler.cpp.
* Move some handlers/senders to correct place.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-01-15 19:50:27 +01:00
parent 0451e45e06
commit 26e11448dd
5 changed files with 92 additions and 83 deletions
+7 -1
View File
@@ -73,20 +73,26 @@ struct AccountData
struct AddonInfo
{
AddonInfo(const std::string& name, uint8 enabled, uint32 crc)
AddonInfo(const std::string& name, uint8 enabled, uint32 crc, uint8 state, bool crcOrPubKey)
{
Name = name;
Enabled = enabled;
CRC = crc;
State = state;
UsePublicKeyOrCRC = crcOrPubKey;
}
std::string Name;
uint8 Enabled;
uint32 CRC;
uint8 State;
bool UsePublicKeyOrCRC;
};
typedef std::list<AddonInfo> AddonsList;
#define STANDARD_ADDON_CRC 0x4c1c776d
enum PartyOperation
{
PARTY_OP_INVITE = 0,