mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Move sys_process_exit
This commit is contained in:
parent
01ffaab3e0
commit
669b1385cc
5 changed files with 23 additions and 26 deletions
|
@ -21,6 +21,23 @@ s64 sys_time_get_system_time()
|
|||
return get_system_time();
|
||||
}
|
||||
|
||||
s32 sys_process_exit(ppu_thread& ppu, s32 status)
|
||||
{
|
||||
vm::temporary_unlock(ppu);
|
||||
|
||||
sysPrxForUser.warning("sys_process_exit(status=0x%x)", status);
|
||||
|
||||
Emu.CallAfter([]()
|
||||
{
|
||||
sysPrxForUser.success("Process finished");
|
||||
Emu.Stop();
|
||||
});
|
||||
|
||||
thread_ctrl::eternalize();
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
s64 _sys_process_atexitspawn()
|
||||
{
|
||||
sysPrxForUser.todo("_sys_process_atexitspawn()");
|
||||
|
@ -236,7 +253,6 @@ DECLARE(ppu_module_manager::sysPrxForUser)("sysPrxForUser", []()
|
|||
|
||||
REG_FUNC(sysPrxForUser, sys_time_get_system_time);
|
||||
|
||||
// TODO: split syscalls and liblv2 functions
|
||||
REG_FUNC(sysPrxForUser, sys_process_exit);
|
||||
REG_FUNC(sysPrxForUser, _sys_process_atexitspawn);
|
||||
REG_FUNC(sysPrxForUser, _sys_process_at_Exitspawn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue