ScummVM API documentation
pack_dcl.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef MADS_CORE_PACK_DCL_H
23
#define MADS_CORE_PACK_DCL_H
24
25
#include "common/stream.h"
26
#include "mads/core/general.h"
27
28
namespace
MADS {
29
30
/*
31
* pack_dcl.cpp -- genuine PKWare Data Compression Library ("explode")
32
* decompressor.
33
*
34
* MADSPACK 1.0 (used by early builds such as the Rex Nebular demo) used
35
* this real PKWare algorithm; MADSPACK 2.0 replaced it with MicroProse's
36
* own "pFAB" compressor (see pfab.cpp). The two formats are unrelated
37
* despite the shared "MADSPACK" branding, and this decoder is deliberately
38
* kept independent of the shared pack_data()/PackList machinery in
39
* pack.cpp (which every other MADS game relies on), so that adding support
40
* for this older format carries no risk of regressing anything else.
41
*
42
* Ported from the public-domain reference implementation "blast.c" by
43
* Mark Adler (zlib contrib/blast), which documents the format originally
44
* described by Ben Rudiak-Gould.
45
*/
46
57
extern
bool
pack_dcl_explode(
Common::SeekableReadStream
*src,
byte
*dest,
long
destSize);
58
59
}
// namespace MADS
60
61
#endif
Common::SeekableReadStream
Definition:
stream.h:745
engines
mads
core
pack_dcl.h
Generated on Sat Oct 24 2026 09:21:07 for ScummVM API documentation by
1.9.4