public MessageBox sceKernelCreateMbx(string Name, MbxAttributesEnum Attributes, SceKernelMbxOptParam *Options)
        {
            if (Options != null)
            {
                throw new NotImplementedException();
            }
            if (Attributes.HasFlag(MbxAttributesEnum.RecvPriority))
            {
                throw new NotImplementedException();
            }
            if (Attributes.HasFlag(MbxAttributesEnum.SendPriority))
            {
                throw new NotImplementedException();
            }

            var Mbx = new MessageBox()
            {
                Name       = Name,
                Attributes = Attributes,
            };

            if (Options != null)
            {
                Mbx.Options = *Options;
            }
            return(Mbx);
        }
示例#2
0
        public int sceKernelCreateMbx(string Name, MbxAttributesEnum Attributes, SceKernelMbxOptParam* Options)
        {
            if (Options != null) throw(new NotImplementedException());
            if (Attributes.HasFlag(MbxAttributesEnum.RecvPriority)) throw(new NotImplementedException());
            if (Attributes.HasFlag(MbxAttributesEnum.SendPriority)) throw (new NotImplementedException());

            var Mbx = new MessageBox()
            {
                Name = Name,
                Attributes = Attributes,
            };
            if (Options != null) Mbx.Options = *Options;
            return MessageBoxList.Create(Mbx);
        }