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.
This commit is contained in:
Alexandro Sánchez Bach 2013-11-09 03:48:43 +01:00
parent 60261408c2
commit 620b8d0369
2 changed files with 2 additions and 2 deletions

View File

@ -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())

View File

@ -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;