protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (_handle != null && !_handle.IsInvalid) { _handle.Close(); _handle = null; } if (_owner != null) { _owner.RemoveOwnedFile(this); _owner = null; } } }
internal MpqFileStream(MpqFileSafeHandle handle, FileAccess accessType, MpqArchive owner) { _handle = handle; _accessType = accessType; _owner = owner; }