コード例 #1
0
        public PoolId sceKernelCreateFpl(string Name, HleMemoryManager.Partitions PartitionId, int Attributes, int BlockSize, int NumberOfBlocks, void* Options)
        {
            if (Options != null) throw(new NotImplementedException());

            var FixedPool = new FixedPool()
            {
                MemoryManager = HleState.MemoryManager,
                Name = Name,
                PartitionId = PartitionId,
                Attributes = Attributes,
                BlockSize = BlockSize,
                NumberOfBlocks = NumberOfBlocks,
            };
            FixedPool.Init();

            return FixedPoolList.Create(FixedPool);
        }
コード例 #2
0
        public FixedPool sceKernelCreateFpl(string Name, MemoryPartitions PartitionId, FplAttributes Attributes,
                                            int BlockSize, int NumberOfBlocks, FplOptionsStruct *Options)
        {
            var FixedPool = new FixedPool(this)
            {
                MemoryManager  = MemoryManager,
                Name           = Name,
                PartitionId    = PartitionId,
                Attributes     = Attributes,
                BlockSize      = BlockSize,
                NumberOfBlocks = NumberOfBlocks,
            };

            if (Options != null)
            {
                FixedPool.Options = *Options;
            }
            FixedPool.Init();

            return(FixedPool);
        }
コード例 #3
0
        public PoolId sceKernelCreateFpl(string Name, HleMemoryManager.Partitions PartitionId, int Attributes, int BlockSize, int NumberOfBlocks, void *Options)
        {
            if (Options != null)
            {
                throw(new NotImplementedException());
            }

            var FixedPool = new FixedPool()
            {
                MemoryManager  = HleState.MemoryManager,
                Name           = Name,
                PartitionId    = PartitionId,
                Attributes     = Attributes,
                BlockSize      = BlockSize,
                NumberOfBlocks = NumberOfBlocks,
            };

            FixedPool.Init();

            return(FixedPoolList.Create(FixedPool));
        }
コード例 #4
0
        public PoolId sceKernelCreateFpl(string Name, HleMemoryManager.Partitions PartitionId, FplAttributes Attributes, int BlockSize, int NumberOfBlocks, FplOptionsStruct* Options)
        {
            var FixedPool = new FixedPool(this)
            {
                MemoryManager = MemoryManager,
                Name = Name,
                PartitionId = PartitionId,
                Attributes = Attributes,
                BlockSize = BlockSize,
                NumberOfBlocks = NumberOfBlocks,
            };
            if (Options != null) FixedPool.Options = *Options;
            FixedPool.Init();

            return FixedPoolList.Create(FixedPool);
        }