EEex_Init
A lua function used to initialize the EEex project framework.
EEex_Init()
Parameters
None
Return
Returns pointer to newly allocated memory for EEex to use in other internal functions
Notes
This function, EEex_ExposeToLua, EEex_WriteByte and EEex_AddressList are implemented by the EEex loader in the process space of the game executable as lua functions.
EEex_Init does several things:
Exposes the hardcoded function EEex_WriteByte
Exposes the hardcoded function EEex_ExposeToLua
Calls VirtualAlloc with the following params: lpAddress =
0, dwSize =0x1000, flAllocationType =MEM_COMMIT | MEM_RESERVE, flProtect =PAGE_EXECUTE_READWRITEPasses along the VirtualAlloc return value
For more technical information on how the EEex loader works and how it implements these functions, please visit this wiki page
Example
EEex_InitialMemory = EEex_Init()
See Also