Added a new ValveCallType that allows for arbitrary |this| parameters, as well as associated features in gamedata and for reading/writing memory (bug 3520, r=dvander, sr=fyren).

This commit is contained in:
Downtown1
2010-01-11 22:46:44 -08:00
parent ead6ca73e5
commit 18865c44c8
9 changed files with 330 additions and 2 deletions
+10 -1
View File
@@ -42,7 +42,7 @@
*/
#define SMINTERFACE_GAMECONFIG_NAME "IGameConfigManager"
#define SMINTERFACE_GAMECONFIG_VERSION 5
#define SMINTERFACE_GAMECONFIG_VERSION 6
class SendProp;
@@ -89,6 +89,15 @@ namespace SourceMod
* address is NULL.
*/
virtual bool GetMemSig(const char *key, void **addr) =0;
/**
* @brief Retrieves the value of an address from the "Address" section.
*
* @param key Key to retrieve from the Address section.
* @param addr Pointer to store the memory address.
* @return True on success, false on failure.
*/
virtual bool GetAddress(const char *key, void **addr) =0;
};
/**