mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-25 11:16:55 +01:00
Remove duplicated do_start, return the recturn code from payload.rpx
This commit is contained in:
parent
9aa4f34190
commit
98e3c0882b
@ -82,8 +82,6 @@ extern "C" int _start(int argc, char **argv) {
|
||||
auto heap = (MEMExpHeap *) mem2_heap_handle;
|
||||
MEMExpHeapBlock *memory_start = heap->usedList.tail;
|
||||
|
||||
int res = do_start(argc, argv);
|
||||
|
||||
uint32_t entrypoint = do_start(argc, argv);
|
||||
|
||||
// free leaked memory
|
||||
@ -105,8 +103,7 @@ extern "C" int _start(int argc, char **argv) {
|
||||
__fini_wut();
|
||||
|
||||
if (entrypoint > 0) {
|
||||
((int (*)(int, char **)) entrypoint)(argc, argv);
|
||||
_Exit(0);
|
||||
return ((int (*)(int, char **)) entrypoint)(argc, argv);
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user