1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Stub sys_process_get_number_of_object(object == SYS_TRACE_OBJECT)

This commit is contained in:
Eladash 2019-08-14 18:18:06 +03:00 committed by Ivan
parent 6540fecdc3
commit 80827aa31a
2 changed files with 14 additions and 12 deletions

View File

@ -68,7 +68,7 @@ s32 sys_process_get_number_of_object(u32 object, vm::ptr<u32> nump)
case SYS_INTR_SERVICE_HANDLE_OBJECT: *nump = idm_get_count<lv2_obj, lv2_int_serv>(); break;
case SYS_EVENT_QUEUE_OBJECT: *nump = idm_get_count<lv2_obj, lv2_event_queue>(); break;
case SYS_EVENT_PORT_OBJECT: *nump = idm_get_count<lv2_obj, lv2_event_port>(); break;
case SYS_TRACE_OBJECT: fmt::throw_exception("SYS_TRACE_OBJECT" HERE);
case SYS_TRACE_OBJECT: sys_process.error("sys_process_get_number_of_object: object = SYS_TRACE_OBJECT"); *nump = 0; break;
case SYS_SPUIMAGE_OBJECT: fmt::throw_exception("SYS_SPUIMAGE_OBJECT" HERE);
case SYS_PRX_OBJECT: *nump = idm_get_count<lv2_obj, lv2_prx>(); break;
case SYS_SPUPORT_OBJECT: fmt::throw_exception("SYS_SPUPORT_OBJECT" HERE);

View File

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "sys_trace.h"
#include "Emu/System.h"
@ -9,62 +9,64 @@
LOG_CHANNEL(sys_trace);
// TODO: DEX/DECR mode support?
s32 sys_trace_create()
{
sys_trace.todo("sys_trace_create()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_start()
{
sys_trace.todo("sys_trace_start()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_stop()
{
sys_trace.todo("sys_trace_stop()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_update_top_index()
{
sys_trace.todo("sys_trace_update_top_index()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_destroy()
{
sys_trace.todo("sys_trace_destroy()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_drain()
{
sys_trace.todo("sys_trace_drain()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_attach_process()
{
sys_trace.todo("sys_trace_attach_process()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_allocate_buffer()
{
sys_trace.todo("sys_trace_allocate_buffer()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_free_buffer()
{
sys_trace.todo("sys_trace_free_buffer()");
return CELL_OK;
return CELL_ENOSYS;
}
s32 sys_trace_create2()
{
sys_trace.todo("sys_trace_create2()");
return CELL_OK;
return CELL_ENOSYS;
}