Save the address of memory allocated on the plugin heap

This commit is contained in:
Maschell
2020-05-03 12:23:50 +02:00
parent f31da6e1e5
commit fae8be334f
4 changed files with 16 additions and 1 deletions

View File

@@ -64,6 +64,8 @@ struct plugin_info_t {
uint32_t number_used_hooks; // Number of used hooks. Maximum is MAXIMUM_HOOKS_PER_PLUGIN
replacement_data_hook_t hooks[MAXIMUM_HOOKS_PER_PLUGIN]; // Replacement information for each function.
uint8_t trampolinId;
void * allocatedTextMemoryAddress = nullptr;
void * allocatedDataMemoryAddress = nullptr;
};
struct plugin_data_t {