Make sure the PayloadLoaderPayload doesn't get overwritten

This commit is contained in:
Maschell 2024-04-20 09:02:22 +02:00
parent dacb728d12
commit c368fb4e6f

View File

@ -111,8 +111,8 @@ uint32_t do_start(int argc, char **argv) {
std::string filepath("fs:/vol/external01/wiiu/payload.rpx"); std::string filepath("fs:/vol/external01/wiiu/payload.rpx");
int result = 0; int result = 0;
// The module will be loaded to 0x00FFF000 - sizeof(payload.rpx) // The module will be loaded to 0x00FD0000 - sizeof(payload.rpx)
std::optional<ModuleData> moduleData = ModuleDataFactory::load(filepath, 0x00FFF000, 0x00FFF000 - moduleDataStartAddress, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH); std::optional<ModuleData> moduleData = ModuleDataFactory::load(filepath, 0x00FD0000, 0x00FD0000 - moduleDataStartAddress, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH);
if (moduleData) { if (moduleData) {
DEBUG_FUNCTION_LINE("Loaded module data"); DEBUG_FUNCTION_LINE("Loaded module data");
std::vector<RelocationData> relocData = moduleData->getRelocationDataList(); std::vector<RelocationData> relocData = moduleData->getRelocationDataList();