mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 11:40:42 +01:00
fix exit sequence
This commit is contained in:
parent
e096dad4c5
commit
b168032339
@ -28,7 +28,6 @@ unload:
|
||||
lwz 3, 0xC(1)
|
||||
lwz 4, 0x10(1)
|
||||
bl rpl_entry
|
||||
bl __fini_wut
|
||||
addi 1, 1, 0x14
|
||||
b exit
|
||||
|
||||
|
@ -14,6 +14,5 @@ __rpx_start:
|
||||
lwz 3, 0xC(1)
|
||||
lwz 4, 0x10(1)
|
||||
bl main
|
||||
bl __fini_wut
|
||||
addi 1, 1, 0x14
|
||||
b exit
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <coreinit/exit.h>
|
||||
|
||||
void(*__wut_exit)(int rc);
|
||||
extern void __fini_wut(void);
|
||||
|
||||
int __syscall_lock_init(int *lock, int recursive) {
|
||||
return __wut_lock_init(lock,recursive);
|
||||
@ -19,7 +20,8 @@ int __syscall_lock_acquire(int *lock) {
|
||||
return __wut_lock_acquire(lock);
|
||||
}
|
||||
|
||||
void __syscall_exit(int rc) {
|
||||
void __syscall_exit(int rc) {
|
||||
__fini_wut();
|
||||
__wut_exit(rc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user