2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2006-02-22 22:40:53 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-02-22 22:40:53 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-12-03 18:29:58 +00:00
|
|
|
#ifndef CINE_PART_H
|
|
|
|
#define CINE_PART_H
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
namespace Cine {
|
|
|
|
|
2006-02-27 21:25:59 +00:00
|
|
|
struct PartBuffer {
|
2006-02-25 18:16:40 +00:00
|
|
|
char partName[14];
|
2006-02-23 09:12:21 +00:00
|
|
|
uint32 offset;
|
2006-02-25 18:16:40 +00:00
|
|
|
uint32 packedSize;
|
|
|
|
uint32 unpackedSize;
|
2006-05-26 09:36:41 +00:00
|
|
|
};
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
#define NUM_MAX_PARTDATA 255
|
|
|
|
|
|
|
|
void loadPart(const char *partName);
|
2009-11-02 21:54:57 +00:00
|
|
|
void closePart();
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
int16 findFileInBundle(const char *fileName);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2008-08-11 20:18:33 +00:00
|
|
|
void readFromPart(int16 idx, byte *dataPtr, uint32 maxSize);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2008-08-12 22:45:38 +00:00
|
|
|
byte *readBundleFile(int16 foundFileIdx, uint32 *size = NULL);
|
2007-05-20 11:48:53 +00:00
|
|
|
byte *readBundleSoundFile(const char *entryName, uint32 *size = 0);
|
2008-08-08 18:28:13 +00:00
|
|
|
byte *readFile(const char *filename, bool crypted = false);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2007-05-13 16:07:33 +00:00
|
|
|
void checkDataDisk(int16 param);
|
|
|
|
|
2006-11-23 06:47:41 +00:00
|
|
|
void dumpBundle(const char *filename);
|
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
} // End of namespace Cine
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#endif
|