Exemplo n.º 1
0
 public static void Initialize()
 {
     UDKConstructorDelegate = UDKPackage.Initialize();
     ME1ConstructorDelegate = ME1Package.Initialize();
     ME2ConstructorDelegate = ME2Package.Initialize();
     ME3ConstructorDelegate = ME3Package.Initialize();
 }
Exemplo n.º 2
0
        public ME3ExportEntry(ME3Package pccFile, Stream stream) : base(pccFile)
        {
            headerOffset = (uint)stream.Position;
            stream.Seek(44, SeekOrigin.Current);
            int count = stream.ReadValueS32();

            stream.Seek(-48, SeekOrigin.Current);

            int expInfoSize = 68 + (count * 4);

            Header           = stream.ReadBytes(expInfoSize);
            OriginalDataSize = DataSize;
            long headerEnd = stream.Position;

            stream.Seek(DataOffset, SeekOrigin.Begin);
            _data = stream.ReadBytes(DataSize);
            stream.Seek(headerEnd, SeekOrigin.Begin);
            if ((ObjectFlags & (ulong)UnrealFlags.EObjectFlags.HasStack) != 0)
            {
                ReadsFromConfig = (Data[25] & 64) != 0;
            }
            else
            {
                ReadsFromConfig = false;
            }
        }
Exemplo n.º 3
0
        public static ME3Package OpenME3Package(string pathToFile, WPFBase wpfWindow = null, WinFormsBase winForm = null)
        {
            IMEPackage pck = OpenMEPackage(pathToFile, wpfWindow, winForm);
            ME3Package pcc = pck as ME3Package;

            if (pcc == null)
            {
                pck.Release(wpfWindow, winForm);
                throw new FormatException("Not an ME3 package file.");
            }
            return(pcc);
        }
Exemplo n.º 4
0
 public ME3ExportEntry(ME3Package pccFile) : base(pccFile)
 {
 }
Exemplo n.º 5
0
 public ME3ExportEntry(ME3Package pccFile, byte[] headerData, uint exportOffset) :
     base(pccFile, headerData, exportOffset)
 {
 }