Cstrike: Implement CS_OnBuy forward.

This commit is contained in:
Arkshine
2014-05-30 00:13:03 +02:00
parent 38e2e3e393
commit f130a8ea89
8 changed files with 404 additions and 39 deletions

View File

@@ -44,6 +44,10 @@
#include <windows.h>
#endif
#if defined _MSC_VER && _MSC_VER >= 1400
#pragma warning (disable:4996) /* Disable deprecation warnings */
#endif
struct DynLibInfo
{
void *baseAddress;
@@ -66,6 +70,7 @@ class MemoryUtils
~MemoryUtils();
public:
void *DecodeAndFindPattern(const void *libPtr, const char *pattern);
void *FindPattern(const void *libPtr, const char *pattern, size_t len);
void *ResolveSymbol(void *handle, const char *symbol);
@@ -73,6 +78,9 @@ class MemoryUtils
bool GetLibraryInfo(const void *libPtr, DynLibInfo &lib);
bool GetLibraryOfAddress(const void *libPtr, char *buffer, size_t maxlength, uintptr_t *base);
public:
size_t DecodeHexString(unsigned char *buffer, size_t maxlength, const char *hexstr);
#if defined(__linux__) || defined(__APPLE__)
private:
ke::Vector<LibSymbolTable *> m_SymTables;