mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-27 10:04:16 +01:00
relocator: Make sure to call the memory_mapping main() function at first
This commit is contained in:
parent
8d46cf5303
commit
ce14fc8a6e
@ -131,9 +131,20 @@ extern "C" void doStart(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < gModuleData->number_used_modules; i++) {
|
for (int i = 0; i < gModuleData->number_used_modules; i++) {
|
||||||
DEBUG_FUNCTION_LINE("About to call %08X\n", gModuleData->module_data[i].entrypoint);
|
if(strcmp(gModuleData->module_data[i].module_export_name, "homebrew_memorymapping") == 0){
|
||||||
int ret = ((int (*)(int, char **)) (gModuleData->module_data[i].entrypoint))(argc, argv);
|
DEBUG_FUNCTION_LINE("About to call memory mapping (%08X)\n", gModuleData->module_data[i].entrypoint);
|
||||||
DEBUG_FUNCTION_LINE("return code was %d\n", ret);
|
int ret = ((int (*)(int, char **)) (gModuleData->module_data[i].entrypoint))(argc, argv);
|
||||||
|
DEBUG_FUNCTION_LINE("return code was %d\n", ret);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < gModuleData->number_used_modules; i++) {
|
||||||
|
if(strcmp(gModuleData->module_data[i].module_export_name, "homebrew_memorymapping") != 0) {
|
||||||
|
DEBUG_FUNCTION_LINE("About to call %08X\n", gModuleData->module_data[i].entrypoint);
|
||||||
|
int ret = ((int (*)(int, char **)) (gModuleData->module_data[i].entrypoint))(argc, argv);
|
||||||
|
DEBUG_FUNCTION_LINE("return code was %d\n", ret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user