ScummVM API documentation
part.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 CINE_PART_H
23#define CINE_PART_H
24
25namespace Cine {
26
27struct PartBuffer {
28 char partName[14];
29 uint32 offset;
30 uint32 packedSize;
31 uint32 unpackedSize;
32};
33
34#define NUM_MAX_PARTDATA 255
35
36void loadPart(const char *partName);
37void closePart();
38
39int16 findFileInBundle(const char *fileName);
40
41void readFromPart(int16 idx, byte *dataPtr, uint32 maxSize);
42
43byte *readBundleFile(int16 foundFileIdx, uint32 *size = NULL);
44byte *readBundleSoundFile(const char *entryName, uint32 *size = 0);
45byte *readFile(const char *filename, bool crypted = false);
46
47void checkDataDisk(int16 param);
48
49void dumpBundle(const char *filename);
50
51} // End of namespace Cine
52
53#endif
Definition: anim.h:29
Definition: part.h:27