1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

sys_time: review fixes

This commit is contained in:
capriots 2024-04-21 21:34:24 +02:00 committed by Megamouse
parent 79f54771b5
commit 36abdd7114

View File

@ -1,6 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "sys_time.h" #include "sys_time.h"
#include "sys_process.h"
#include "Emu/system_config.h" #include "Emu/system_config.h"
#include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/timers.hpp" #include "Emu/Cell/timers.hpp"
@ -220,7 +221,12 @@ u64 get_guest_system_time(u64 time)
// Functions // Functions
error_code sys_time_set_timezone(s32 timezone, s32 summertime) 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; return CELL_OK;
} }
@ -383,7 +389,12 @@ error_code sys_time_get_current_time(vm::ptr<s64> sec, vm::ptr<s64> nsec)
error_code sys_time_set_current_time(s64 sec, s64 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; return CELL_OK;
} }