core/GameConfigs.h
changeset 2901 f5a1cf24f505
parent 2726 c96f3fab8211
     1.1 --- a/core/GameConfigs.h	Mon Jan 11 20:09:34 2010 -0800
     1.2 +++ b/core/GameConfigs.h	Mon Jan 11 22:46:44 2010 -0800
     1.3 @@ -65,6 +65,7 @@
     1.4  	bool GetOffset(const char *key, int *value);
     1.5  	SendProp *GetSendProp(const char *key);
     1.6  	bool GetMemSig(const char *key, void **addr);
     1.7 +	bool GetAddress(const char *key, void **addr);
     1.8  public:
     1.9  	void IncRefCount();
    1.10  	unsigned int DecRefCount();
    1.11 @@ -93,6 +94,24 @@
    1.12  	/* Custom Sections */
    1.13  	unsigned int m_CustomLevel;
    1.14  	ITextListener_SMC *m_CustomHandler;
    1.15 +
    1.16 +	/* Support for reading Addresses */
    1.17 +	struct AddressConf
    1.18 +	{
    1.19 +		char signatureName[64];
    1.20 +		int readCount;
    1.21 +		int read[8];
    1.22 +
    1.23 +		AddressConf(char *sigName, unsigned sigLength, unsigned readCount, int *read);
    1.24 +
    1.25 +		AddressConf() {}
    1.26 +	};
    1.27 +
    1.28 +	char m_Address[64];
    1.29 +	char m_AddressSignature[64];
    1.30 +	int m_AddressReadCount;
    1.31 +	int m_AddressRead[8];
    1.32 +	KTrie<AddressConf> *m_pAddresses;
    1.33  };
    1.34  
    1.35  class GameConfigManager :