mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Move sys_crashdump to it's own file and make it a module itself
This commit is contained in:
parent
e5d0e035d0
commit
df338f0552
9 changed files with 61 additions and 42 deletions
|
|
@ -144,30 +144,6 @@ error_code sys_lv2coredump_D725F320()
|
|||
fmt::throw_exception("Unknown, unimplemented.");
|
||||
}
|
||||
|
||||
error_code sys_crash_dump_get_user_log_area(u8 index, vm::ptr<sys_crash_dump_log_area_info_t> entry)
|
||||
{
|
||||
sysPrxForUser.todo("sys_crash_dump_get_user_log_area(index=%d, entry=*0x%x)", index, entry);
|
||||
|
||||
if (index > SYS_CRASH_DUMP_MAX_LOG_AREA || !entry)
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
error_code sys_crash_dump_set_user_log_area(u8 index, vm::ptr<sys_crash_dump_log_area_info_t> new_entry)
|
||||
{
|
||||
sysPrxForUser.todo("sys_crash_dump_set_user_log_area(index=%d, new_entry=*0x%x)", index, new_entry);
|
||||
|
||||
if (index > SYS_CRASH_DUMP_MAX_LOG_AREA || !new_entry)
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
error_code sys_get_bd_media_id()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(sysPrxForUser);
|
||||
|
|
@ -225,12 +201,6 @@ DECLARE(ppu_module_manager::sysPrxForUser)("sysPrxForUser", []()
|
|||
REG_FNID(sys_lv2coredump, 0xD725F320, sys_lv2coredump_D725F320);
|
||||
});
|
||||
|
||||
static ppu_static_module sys_crashdump("sys_crashdump", []()
|
||||
{
|
||||
REG_FUNC(sys_crashdump, sys_crash_dump_get_user_log_area);
|
||||
REG_FUNC(sys_crashdump, sys_crash_dump_set_user_log_area);
|
||||
});
|
||||
|
||||
static ppu_static_module sysBdMediaId("sysBdMediaId", []()
|
||||
{
|
||||
REG_FUNC(sysBdMediaId, sys_get_bd_media_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue