mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
ab5c11f876
AMXx Mods may now patch/retreive memory of several varieties directly from the game .dll, mod .dll, or can go free and patch/retreive any peice of memory. I salute you DS.
19 lines
485 B
C++
19 lines
485 B
C++
#include "MemMisc.h"
|
|
|
|
extern AMX_NATIVE_INFO read_natives[];
|
|
extern AMX_NATIVE_INFO write_natives[];
|
|
extern AMX_NATIVE_INFO misc_natives[];
|
|
|
|
void OnAmxxAttach()
|
|
{
|
|
// Get Base Addresses for dll and engine; exit if unavailable.
|
|
if(GetBaseAddresses() == false) return MF_LogError(NULL,AMX_ERR_MEMACCESS,"Unable to get base address of game or mod .dll!");
|
|
|
|
// Add natives if base is found.
|
|
MF_AddNatives(read_natives);
|
|
MF_AddNatives(write_natives);
|
|
MF_AddNatives(misc_natives);
|
|
}
|
|
|
|
|