ObjFW  Diff

Differences From Artifact [379a7cdf89]:

To Artifact [01aaa2fa44]:


88
89
90
91
92
93
94
95

96
97

98
99
100

101
102
103
104
105
106
107
88
89
90
91
92
93
94

95
96

97
98
99

100
101
102
103
104
105
106
107







-
+

-
+


-
+







			crc = (crc >> 1) ^ (CRC32_MAGIC & (~(crc & 1) + 1));
	}

	return crc;
}

@implementation OFZIPArchive
+ (instancetype)archiveWithFile: (OFString*)path
+ (instancetype)archiveWithPath: (OFString*)path
{
	return [[[self alloc] initWithFile: path] autorelease];
	return [[[self alloc] initWithPath: path] autorelease];
}

- initWithFile: (OFString*)path
- initWithPath: (OFString*)path
{
	self = [super init];

	@try {
		_file = [[OFFile alloc] initWithPath: path
						mode: @"rb"];
		_path = [path copy];