コード例 #1
0
        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);
        }
コード例 #2
0
        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,
                },
            };
        }
コード例 #3
0
        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,
                Info = new EventFlagInfo(0)
                {
                    Attributes = Attributes,
                    InitialPattern = BitPattern,
                    CurrentPattern = BitPattern,
                },
            };
            #if false
            HleEventFlag.Info.InitialPattern = 3;
            HleEventFlag.Info.CurrentPattern = 3;
            #endif
            return EventFlagManager.EventFlags.Create(HleEventFlag);
        }