5,389
edits
No edit summary |
|||
Line 67: | Line 67: | ||
inflate(&infstream, Z_NO_FLUSH); | inflate(&infstream, Z_NO_FLUSH); | ||
inflateEnd(&infstream); | inflateEnd(&infstream); | ||
The important line, which defines the decompression rules, is '''inflateInit2(&infstream,-15)'''. | The important line, which defines the decompression rules, is '''inflateInit2(&infstream,-15)'''. -15 means maximum compression and no header. For more details, c.f. the ZLIB documentation. | ||
With proper decompression, the DAT files extract as follows: [http://geyser.oni2.net/BANKS.DAT.ZIP BANKS.DAT] [http://geyser.oni2.net/RB.DAT.ZIP RB.DAT] [http://geyser.oni2.net/STREAMS.DAT.ZIP STREAMS.DAT] | With proper decompression, the DAT files extract as follows: [http://geyser.oni2.net/BANKS.DAT.ZIP BANKS.DAT] [http://geyser.oni2.net/RB.DAT.ZIP RB.DAT] [http://geyser.oni2.net/STREAMS.DAT.ZIP STREAMS.DAT] |