From 620b8d036980aefc01790f8ecf4d1abeb7ca1cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandro=20S=C3=A1nchez=20Bach?= Date: Sat, 9 Nov 2013 03:48:43 +0100 Subject: [PATCH] Fixed errors of last commit I forgot to modify one line of code that broke the entire solution. Now this is fixed. I also disabled the logging of sys_timer_usleep calls. --- rpcs3/Emu/SysCalls/lv2/SC_PPU_Thread.cpp | 2 +- rpcs3/Emu/SysCalls/lv2/SC_Timer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/SysCalls/lv2/SC_PPU_Thread.cpp b/rpcs3/Emu/SysCalls/lv2/SC_PPU_Thread.cpp index d4c8188d72..a9c712c608 100644 --- a/rpcs3/Emu/SysCalls/lv2/SC_PPU_Thread.cpp +++ b/rpcs3/Emu/SysCalls/lv2/SC_PPU_Thread.cpp @@ -49,7 +49,7 @@ int sys_ppu_thread_detach(u32 thread_id) { sysPrxForUser.Error("sys_ppu_thread_detach(thread_id=%d)", thread_id); - PPCThread* thr = Emu.GetCPU().GetThread(thread_id); + CPUThread* thr = Emu.GetCPU().GetThread(thread_id); if(!thr) return CELL_ESRCH; if(!thr->IsJoinable()) diff --git a/rpcs3/Emu/SysCalls/lv2/SC_Timer.cpp b/rpcs3/Emu/SysCalls/lv2/SC_Timer.cpp index c0262bfde1..cd5623f12f 100644 --- a/rpcs3/Emu/SysCalls/lv2/SC_Timer.cpp +++ b/rpcs3/Emu/SysCalls/lv2/SC_Timer.cpp @@ -103,7 +103,7 @@ int sys_timer_sleep(u32 sleep_time) int sys_timer_usleep(u64 sleep_time) { - sys_timer.Warning("sys_timer_usleep(sleep_time=%lld)", sleep_time); + sys_timer.Log("sys_timer_usleep(sleep_time=%lld)", sleep_time); if (sleep_time > 0xFFFFFFFFFFFF) sleep_time = 0xFFFFFFFFFFFF; //2^48-1 wxMicroSleep(sleep_time); //TODO: If (sleep_time >= 2^32) shit may happen return CELL_OK;