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); }
public void InitBuffer() { if (CanRead && UR == null) { UR = new UnrealReader(this, BigEndianCode ? Encoding.BigEndianUnicode : Encoding.Unicode); } if (CanWrite && UW == null) { UW = new UnrealWriter(this); } }
private void InitBuffer() { if (CanRead && UR == null) { UR = new UnrealReader(this, this); } if (CanWrite && UW == null) { UW = new UnrealWriter(this); } }
public void InitBuffer() { if( CanRead && UR == null ) { UR = new UnrealReader( this, BigEndianCode ? Encoding.BigEndianUnicode : Encoding.Unicode ); } if( CanWrite && UW == null ) { UW = new UnrealWriter( this ); } }
private void InitBuffer() { if( CanRead && UR == null ) { UR = new UnrealReader( this ); } if( CanWrite && UW == null ) { UW = new UnrealWriter( this ); } }