mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
Fix rescheduling of vtimers based on return value.
This commit is contained in:
1 parent
b42cb0581c
commit
2ba976bffb
1 file changed
+2
-5
@@ -102,9 +102,7 @@ void __rescheduleVTimer(SceUID id, int delay) {
|
||||
if (delay < 0)
|
||||
delay = 100;
|
||||
|
||||
u64 schedule = vt->nvt.schedule + delay;
|
||||
|
||||
__KernelScheduleVTimer(vt, schedule);
|
||||
__KernelScheduleVTimer(vt, delay);
|
||||
}
|
||||
|
||||
class VTimerIntrHandler : public IntrHandler
|
||||
@@ -336,8 +334,7 @@ void __startVTimer(VTimer *vt) {
|
||||
vt->nvt.active = 1;
|
||||
vt->nvt.base = cyclesToUs(CoreTiming::GetTicks());
|
||||
|
||||
// Checking for zero here breaks audio in Monster Hunter. It still doesn't work well though.
|
||||
if (/*vt->nvt.schedule != 0 &&*/ vt->nvt.handlerAddr != 0)
|
||||
if (vt->nvt.handlerAddr != 0)
|
||||
__KernelScheduleVTimer(vt, vt->nvt.schedule);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user