Differences From Artifact [d7dfa4dbcd]:
- File
src/OFLHAArchive.m
— part of check-in
[790b5344d6]
at
2018-05-26 23:04:24
on branch trunk
— Add OFLHAArchive
This is currently limited to reading uncompressed LHA level 2 files. (user: js, size: 5527) [annotate] [blame] [check-ins using]
To Artifact [dc06a91f23]:
- File
src/OFLHAArchive.m
— part of check-in
[1a6e3816c1]
at
2018-05-27 07:32:22
on branch trunk
— OFLHAArchiveEntry: Keep the method as a string
It is only necessary to extract files, so it makes sense to keep it as
is to be able to list files using an unknown method. (user: js, size: 5515) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
177 178 179 180 181 182 183 | @implementation OFLHAArchive_FileReadStream - (instancetype)of_initWithStream: (OFStream *)stream entry: (OFLHAArchiveEntry *)entry { self = [super init]; @try { | | | > | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | @implementation OFLHAArchive_FileReadStream - (instancetype)of_initWithStream: (OFStream *)stream entry: (OFLHAArchiveEntry *)entry { self = [super init]; @try { OFString *method = [entry method]; if (![method isEqual: @"-lh0-"] && ![method isEqual: @"-lhd-"]) @throw [OFNotImplementedException exceptionWithSelector: _cmd object: self]; _entry = [entry copy]; _stream = [stream retain]; _toRead = [entry uncompressedSize]; |
︙ | ︙ |