ScummVM API documentation
pak.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 AWE_PAK_H
23
#define AWE_PAK_H
24
25
#include "common/file.h"
26
27
#include "awe/intern.h"
28
29
namespace
Awe {
30
31
struct
PakEntry
{
32
char
name[32] = {
'\0'
};
33
uint32 offset = 0;
34
uint32 size = 0;
35
};
36
37
struct
Pak
{
38
static
const
char
*FILENAME;
39
40
Common::File
_f;
41
PakEntry
*_entries =
nullptr
;
42
int
_entriesCount = 0;
43
44
Pak
();
45
~Pak
();
46
47
void
open(
const
char
*dataPath);
48
void
close();
49
50
void
readEntries();
51
const
PakEntry
*find(
const
char
*name);
52
void
loadData(
const
PakEntry
*e, uint8 *buf, uint32 *size);
53
};
54
55
}
// namespace Awe
56
57
#endif
Common::File
Definition:
file.h:47
Awe::PakEntry
Definition:
pak.h:31
Awe::Pak
Definition:
pak.h:37
engines
awe
pak.h
Generated on Sat Oct 24 2026 09:15:34 for ScummVM API documentation by
1.9.4