public int sceKernelSetVTimerHandler(VirtualTimer VirtualTimer, SceKernelSysClock *Time, PspPointer HandlerCallback, PspPointer HandlerArgument) { VirtualTimer.SetHandler(Time: Time->MicroSeconds, HandlerCallback: HandlerCallback, HandlerArgument: HandlerArgument, HandlerIsWide: false); return(0); }
public int sceKernelSetVTimerHandlerWide(VirtualTimer VirtualTimer, long Time, PspPointer HandlerCallback, PspPointer HandlerArgument) { VirtualTimer.SetHandler(Time: Time, HandlerCallback: HandlerCallback, HandlerArgument: HandlerArgument, HandlerIsWide: true); return(0); }
public VirtualTimer sceKernelCreateVTimer(string Name, SceKernelVTimerOptParam* SceKernelVTimerOptParam) { var VirtualTimer = new VirtualTimer(InjectContext, Name); if (SceKernelVTimerOptParam != null) VirtualTimer.SceKernelVTimerOptParam = *SceKernelVTimerOptParam; VirtualTimer.Id = VirtualTimer.GetUidIndex(InjectContext); return VirtualTimer; }
public int sceKernelCreateVTimer(string Name, SceKernelVTimerOptParam *SceKernelVTimerOptParam) { var VirtualTimer = new VirtualTimer(PspEmulatorContext, Name); if (SceKernelVTimerOptParam != null) VirtualTimer.SceKernelVTimerOptParam = *SceKernelVTimerOptParam; var VirtualTimerId = VirtualTimerPool.Create(VirtualTimer); VirtualTimer.Id = VirtualTimerId; return VirtualTimerId; }
public VirtualTimer sceKernelCreateVTimer(string Name, SceKernelVTimerOptParam *SceKernelVTimerOptParam) { var VirtualTimer = new VirtualTimer(InjectContext, Name); if (SceKernelVTimerOptParam != null) { VirtualTimer.SceKernelVTimerOptParam = *SceKernelVTimerOptParam; } VirtualTimer.Id = VirtualTimer.GetUidIndex(InjectContext); return(VirtualTimer); }
public int sceKernelDeleteVTimer(VirtualTimer VirtualTimer) { VirtualTimer.RemoveUid(InjectContext); return(0); }
public int sceKernelCancelVTimerHandler(VirtualTimer VirtualTimer) { VirtualTimer.CancelHandler(); return(0); }
public int sceKernelSetVTimerTimeWide(VirtualTimer VirtualTimer, long Time) { throw(new NotImplementedException()); //VirtualTimer.ElapsedMicroseconds = Time; return 0; }
public int sceKernelGetVTimerTime(VirtualTimer VirtualTimer, SceKernelSysClock *Time) { return((int)VirtualTimer.ElapsedMicroseconds); }
public long sceKernelGetVTimerTimeWide(VirtualTimer VirtualTimer) { return VirtualTimer.ElapsedMicroseconds; }
public int sceKernelGetVTimerTime(VirtualTimer VirtualTimer, SceKernelSysClock* Time) { return (int)VirtualTimer.ElapsedMicroseconds; }
public int sceKernelDeleteVTimer(VirtualTimer VirtualTimer) { VirtualTimer.RemoveUid(InjectContext); return 0; }
public int sceKernelCancelVTimerHandler(VirtualTimer VirtualTimer) { VirtualTimer.CancelHandler(); return 0; }
public int sceKernelStopVTimer(VirtualTimer VirtualTimer) { VirtualTimer.Stop(); return 0; }
public int sceKernelStartVTimer(VirtualTimer VirtualTimer) { VirtualTimer.Start(); return 0; }
public int sceKernelStopVTimer(VirtualTimer VirtualTimer) { VirtualTimer.Stop(); return(0); }
public int sceKernelSetVTimerTimeWide(VirtualTimer VirtualTimer, long Time) { throw(new NotImplementedException()); //VirtualTimer.ElapsedMicroseconds = Time; return(0); }
public int sceKernelSetVTimerHandler(VirtualTimer VirtualTimer, SceKernelSysClock* Time, PspPointer HandlerCallback, PspPointer HandlerArgument) { VirtualTimer.SetHandler(Time: Time->MicroSeconds, HandlerCallback: HandlerCallback, HandlerArgument: HandlerArgument, HandlerIsWide: false); return 0; }
public long sceKernelGetVTimerTimeWide(VirtualTimer VirtualTimer) { return(VirtualTimer.ElapsedMicroseconds); }
public int sceKernelSetVTimerHandlerWide(VirtualTimer VirtualTimer, long Time, PspPointer HandlerCallback, PspPointer HandlerArgument) { VirtualTimer.SetHandler(Time: Time, HandlerCallback: HandlerCallback, HandlerArgument: HandlerArgument, HandlerIsWide: true); return 0; }