mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix error code on start vtimer with current.
This commit is contained in:
parent
4a444776ab
commit
856e3b7071
1 changed files with 5 additions and 2 deletions
|
@ -80,8 +80,6 @@ int __KernelCancelVTimer(SceUID id) {
|
|||
u32 error;
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(id, error);
|
||||
|
||||
// TODO: 0 returns a different error code, except inside the handler?
|
||||
// Also, inside the handler returns that same different error code for the timer?
|
||||
if (!vt)
|
||||
return error;
|
||||
|
||||
|
@ -355,6 +353,11 @@ void __startVTimer(VTimer *vt) {
|
|||
}
|
||||
|
||||
u32 sceKernelStartVTimer(u32 uid) {
|
||||
if (uid == runningVTimer) {
|
||||
WARN_LOG(SCEKERNEL, "sceKernelStartVTimer(%08x): invalid vtimer", uid);
|
||||
return SCE_KERNEL_ERROR_ILLEGAL_VTID;
|
||||
}
|
||||
|
||||
DEBUG_LOG(SCEKERNEL, "sceKernelStartVTimer(%08x)", uid);
|
||||
|
||||
u32 error;
|
||||
|
|
Loading…
Add table
Reference in a new issue