ScummVM API documentation
dcpackage.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 /*
23  * This file is based on WME Lite.
24  * http://dead-code.org/redir.php?target=wmelite
25  * Copyright (c) 2011 Jan Nedoma
26  */
27 
28 #ifndef _DCPACKAGE_H_
29 #define _DCPACKAGE_H_
30 
31 
32 #define PACKAGE_MAGIC_1 0xDEC0ADDE
33 #define PACKAGE_MAGIC_2 0x4B4E554A // "JUNK"
34 #define PACKAGE_VERSION 0x00000200
35 #define PACKAGE_EXTENSION "dcp"
36 
37 #include "common/stream.h"
38 
39 namespace Wintermute {
40 
42  uint32 _magic1;
43  uint32 _magic2;
44  uint32 _packageVersion;
45  uint32 _gameVersion;
46  byte _priority;
47  byte _cd;
48  bool _masterIndex;
49  uint32 _creationTime;
50  char _desc[100];
51  uint32 _numDirs;
52  // base_package.cpp:
53  void readFromStream(Common::ReadStream *stream);
54 };
55 
56 /*
57 v2: uint32 DirOffset
58 
59 
60 Dir: byte NameLength
61  char Name [NameLength]
62  byte CD;
63  uint32 NumEntries
64 
65 
66 Entry: byte NameLength
67  char Name [NameLength]
68  uint32 Offset
69  uint32 Length
70  uint32 CompLength
71  uint32 Flags
72 v2: uint32 TimeDate1
73  uint32 TimeDate2 // not used
74 
75 */
76 
77 } // End of namespace Wintermute
78 
79 #endif
Definition: dcpackage.h:41
Definition: stream.h:385
Definition: achievements_tables.h:27