* Add basic AddonMgr.

* All this really does at the moment is save addon names + CRCs to DB for use for.. whatever, later.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-01-20 16:24:52 +01:00
parent 593cbe4639
commit 48b085124e
9 changed files with 258 additions and 26 deletions
+1 -22
View File
@@ -27,6 +27,7 @@
#include "Common.h"
#include "SharedDefines.h"
#include "AddonMgr.h"
struct ItemPrototype;
struct AuctionEntry;
@@ -71,28 +72,6 @@ struct AccountData
std::string Data;
};
struct AddonInfo
{
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,