From c368fb4e6f17541b22948561fc2b913ec08c7fbc Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 20 Apr 2024 09:02:22 +0200 Subject: [PATCH] Make sure the PayloadLoaderPayload doesn't get overwritten --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 184300f..e80240d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -111,8 +111,8 @@ uint32_t do_start(int argc, char **argv) { std::string filepath("fs:/vol/external01/wiiu/payload.rpx"); int result = 0; - // The module will be loaded to 0x00FFF000 - sizeof(payload.rpx) - std::optional moduleData = ModuleDataFactory::load(filepath, 0x00FFF000, 0x00FFF000 - moduleDataStartAddress, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH); + // The module will be loaded to 0x00FD0000 - sizeof(payload.rpx) + std::optional moduleData = ModuleDataFactory::load(filepath, 0x00FD0000, 0x00FD0000 - moduleDataStartAddress, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH); if (moduleData) { DEBUG_FUNCTION_LINE("Loaded module data"); std::vector relocData = moduleData->getRelocationDataList();