Esempio n. 1
0
 public RLPackageStream(string path)
 {
     upkFile         = new UPKFile(path);
     Name            = Path.GetFileNameWithoutExtension(path);
     decryptedStream = new MemoryStream();
     upkFile.Decrypt(new RLDecryptor().GetCryptoTransform(), decryptedStream);
     _stream          = decryptedStream;
     _stream.Position = 0;
     UR = new UnrealReader(this, _stream);
     UW = new UnrealWriter(_stream);
 }
Esempio n. 2
0
        public void InitBuffer()
        {
            if (CanRead && UR == null)
            {
                UR = new UnrealReader(this, BigEndianCode ? Encoding.BigEndianUnicode : Encoding.Unicode);
            }

            if (CanWrite && UW == null)
            {
                UW = new UnrealWriter(this);
            }
        }
Esempio n. 3
0
        private void InitBuffer()
        {
            if (CanRead && UR == null)
            {
                UR = new UnrealReader(this, this);
            }

            if (CanWrite && UW == null)
            {
                UW = new UnrealWriter(this);
            }
        }
Esempio n. 4
0
        public void InitBuffer()
        {
            if( CanRead && UR == null )
            {
                UR = new UnrealReader( this, BigEndianCode ? Encoding.BigEndianUnicode : Encoding.Unicode );
            }

            if( CanWrite && UW == null )
            {
                UW = new UnrealWriter( this );
            }
        }
Esempio n. 5
0
        private void InitBuffer()
        {
            if( CanRead && UR == null )
            {
                UR = new UnrealReader( this );
            }

            if( CanWrite && UW == null )
            {
                UW = new UnrealWriter( this );
            }
        }