mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-22 09:49:20 +01:00
Rename WUMS_MODULE_INIT_BEFORE_ENTRYPOINT => WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK, add WUMS_MODULE_SKIP_ENTRYPOINT
This commit is contained in:
parent
1d731aee52
commit
699273c86d
@ -11,7 +11,8 @@
|
||||
#include "function_replacements.h"
|
||||
|
||||
WUMS_MODULE_EXPORT_NAME("homebrew_memorymapping");
|
||||
WUMS_MODULE_INIT_BEFORE_ENTRYPOINT();
|
||||
WUMS_MODULE_SKIP_ENTRYPOINT();
|
||||
WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK();
|
||||
|
||||
WUMS_INITIALIZE() {
|
||||
WHBLogUdpInit();
|
||||
@ -42,7 +43,7 @@ WUMS_APPLICATION_STARTS() {
|
||||
void *address = (void *) (mem_mapping[i].effective_start_address);
|
||||
|
||||
MEMExpHeapBlock *curUsedBlock = ((MEMExpHeap *) address)->usedList.head;
|
||||
while (curUsedBlock != 0) {
|
||||
while (curUsedBlock != nullptr) {
|
||||
DEBUG_FUNCTION_LINE("[Memory leak info] %08X is still allocated (%d bytes)", &curUsedBlock[1], curUsedBlock->blockSize);
|
||||
curUsedBlock = curUsedBlock->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user