diff --git a/rpcs3/Emu/Cell/lv2/sys_time.cpp b/rpcs3/Emu/Cell/lv2/sys_time.cpp index ab5727104a..389300bbf6 100644 --- a/rpcs3/Emu/Cell/lv2/sys_time.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_time.cpp @@ -1,6 +1,7 @@ #include "stdafx.h" #include "sys_time.h" +#include "sys_process.h" #include "Emu/system_config.h" #include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/timers.hpp" @@ -220,7 +221,12 @@ u64 get_guest_system_time(u64 time) // Functions error_code sys_time_set_timezone(s32 timezone, s32 summertime) { - sys_time.todo("sys_time_set_timezone(timezone=0x%x, summertime=0x%x)", timezone, summertime); + sys_time.trace("sys_time_set_timezone(timezone=0x%x, summertime=0x%x)", timezone, summertime); + + if (!g_ps3_process_info.has_root_perm()) + { + return CELL_ENOSYS; + } return CELL_OK; } @@ -383,7 +389,12 @@ error_code sys_time_get_current_time(vm::ptr sec, vm::ptr nsec) error_code sys_time_set_current_time(s64 sec, s64 nsec) { - sys_time.todo("sys_time_set_current_time(sec=0x%x, nsec=0x%x)", sec, nsec); + sys_time.trace("sys_time_set_current_time(sec=0x%x, nsec=0x%x)", sec, nsec); + + if (!g_ps3_process_info.has_root_perm()) + { + return CELL_ENOSYS; + } return CELL_OK; }