public EventFlagId sceKernelCreateEventFlag(string Name, HleEventFlag.AttributesSet Attributes, uint BitPattern, SceKernelEventFlagOptParam *OptionsPtr) { if (OptionsPtr != null) { throw (new NotImplementedException("(OptionsPtr != null)")); } var HleEventFlag = new HleEventFlag() { Name = Name, Attributes = Attributes, BitPattern = BitPattern, }; HleEventFlag.Info.InitialPattern = BitPattern; return(HleState.EventFlagManager.EventFlags.Create(HleEventFlag)); }
public HleEventFlag sceKernelCreateEventFlag(string Name, HleEventFlag.AttributesSet Attributes, uint BitPattern, SceKernelEventFlagOptParam *OptionsPtr) { if (OptionsPtr != null) { throw new NotImplementedException("(OptionsPtr != null)"); } return(new HleEventFlag() { Name = Name, Info = new EventFlagInfo(0) { Name = Name, Attributes = Attributes, InitialPattern = BitPattern, CurrentPattern = BitPattern, }, }); }
/// <summary> /// /// </summary> public EventFlagInfo(int Dummy) { Size = sizeof(EventFlagInfo); //Name[0] = 0; Attributes = (HleEventFlag.AttributesSet)0; InitialPattern = 0; CurrentPattern = 0; NumberOfWaitingThreads = 0; }