Finally done!!! I finished what DS started:

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.
This commit is contained in:
Twilight Suzuka
2006-01-12 03:55:49 +00:00
parent 73ba5d1644
commit ab5c11f876
19 changed files with 6580 additions and 0 deletions

18
dlls/MemHack/MemHack.cpp Normal file
View File

@ -0,0 +1,18 @@
#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);
}