CSPspEmu.Hle.Modules.threadman.ThreadManForUser.VariablePool.Init C# (CSharp) Méthode

Init() public méthode

public Init ( ) : void
Résultat void
            public void Init()
            {
                var High = Info.Attribute.HasFlag(VplAttributeEnum.PSP_VPL_ATTR_ADDR_HIGH);

                #if true
                ExternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
                //InternalMemoryAnchor = Hle.MemoryPartition.Anchor.High;
                InternalMemoryAnchor = Hle.MemoryPartition.Anchor.Low;
                InternalMemoryAnchorReturn = Hle.MemoryPartition.Anchor.Low;
                #else
                InternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
                ExternalMemoryAnchor = Hle.MemoryPartition.Anchor.Low;
                #endif

                this.MemoryPartition = ThreadManForUser.MemoryManager.GetPartition(PartitionId).Allocate(
                    Info.PoolSize,
                    ExternalMemoryAnchor,
                    Name: "<Vpl> : " + Info.Name
                );
            }