Inheritance: IHleUidPoolClass, IDisposable
 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);
 }
Esempio n. 3
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;
 }
Esempio n. 4
0
 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);
 }
Esempio n. 8
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);
 }
Esempio n. 10
0
 public long sceKernelGetVTimerTimeWide(VirtualTimer VirtualTimer)
 {
     return VirtualTimer.ElapsedMicroseconds;
 }
Esempio n. 11
0
 public int sceKernelGetVTimerTime(VirtualTimer VirtualTimer, SceKernelSysClock* Time)
 {
     return (int)VirtualTimer.ElapsedMicroseconds;
 }
Esempio n. 12
0
 public int sceKernelDeleteVTimer(VirtualTimer VirtualTimer)
 {
     VirtualTimer.RemoveUid(InjectContext);
     return 0;
 }
Esempio n. 13
0
 public int sceKernelCancelVTimerHandler(VirtualTimer VirtualTimer)
 {
     VirtualTimer.CancelHandler();
     return 0;
 }
Esempio n. 14
0
 public int sceKernelStopVTimer(VirtualTimer VirtualTimer)
 {
     VirtualTimer.Stop();
     return 0;
 }
Esempio n. 15
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);
 }
Esempio n. 18
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);
 }
Esempio n. 20
0
 public int sceKernelSetVTimerHandlerWide(VirtualTimer VirtualTimer, long Time, PspPointer HandlerCallback, PspPointer HandlerArgument)
 {
     VirtualTimer.SetHandler(Time: Time, HandlerCallback: HandlerCallback, HandlerArgument: HandlerArgument, HandlerIsWide: true);
     return 0;
 }