diff --git a/orbis-kernel/include/orbis/sys/sysproto.hpp b/orbis-kernel/include/orbis/sys/sysproto.hpp index 40d14c0c6..0c94cc1b6 100644 --- a/orbis-kernel/include/orbis/sys/sysproto.hpp +++ b/orbis-kernel/include/orbis/sys/sysproto.hpp @@ -758,11 +758,11 @@ SysResult sys_set_chicken_switches(Thread *thread /* TODO */); SysResult sys_extend_page_table_pool(Thread *thread); SysResult sys_extend_page_table_pool2(Thread *thread); SysResult sys_get_kernel_mem_statistics(Thread *thread /* TODO */); -SysResult sys_get_sdk_compiled_version(Thread *thread /* TODO */); +SysResult sys_get_sdk_compiled_version(Thread *thread, ptr path); SysResult sys_app_state_change(Thread *thread /* TODO */); SysResult sys_dynlib_get_obj_member(Thread *thread, SceKernelModule handle, uint64_t index, ptr> addrp); -SysResult sys_budget_get_ptype_of_budget(Thread *thread /* TODO */); +SysResult sys_budget_get_ptype_of_budget(Thread *thread, sint budgetId); SysResult sys_prepare_to_resume_process(Thread *thread /* TODO */); SysResult sys_process_terminate(Thread *thread /* TODO */); SysResult sys_blockpool_open(Thread *thread); diff --git a/orbis-kernel/src/sys/sys_sce.cpp b/orbis-kernel/src/sys/sys_sce.cpp index fe9de8a53..954124609 100644 --- a/orbis-kernel/src/sys/sys_sce.cpp +++ b/orbis-kernel/src/sys/sys_sce.cpp @@ -1226,8 +1226,10 @@ orbis::sys_get_kernel_mem_statistics(Thread *thread /* TODO */) { return ErrorCode::NOSYS; } orbis::SysResult -orbis::sys_get_sdk_compiled_version(Thread *thread /* TODO */) { - return ErrorCode::NOSYS; +orbis::sys_get_sdk_compiled_version(Thread *thread, ptr path) { + ORBIS_LOG_ERROR(__FUNCTION__, path); + thread->retval[0] = g_context.sdkVersion; + return {}; } orbis::SysResult orbis::sys_app_state_change(Thread *thread /* TODO */) { return ErrorCode::NOSYS; @@ -1243,8 +1245,10 @@ orbis::SysResult orbis::sys_dynlib_get_obj_member(Thread *thread, return ErrorCode::NOSYS; } orbis::SysResult -orbis::sys_budget_get_ptype_of_budget(Thread *thread /* TODO */) { - return ErrorCode::NOSYS; +orbis::sys_budget_get_ptype_of_budget(Thread *thread, sint budgetId) { + ORBIS_LOG_WARNING(__FUNCTION__, budgetId); + thread->retval[0] = budgetId; + return {}; } orbis::SysResult orbis::sys_prepare_to_resume_process(Thread *thread /* TODO */) {