ScummVM API documentation
resource_win31.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_RESOURCE_WIN31_H
23
#define AWE_RESOURCE_WIN31_H
24
25
#include "common/file.h"
26
27
#include "awe/intern.h"
28
29
namespace
Awe
{
30
31
struct
Win31BankEntry
{
32
char
name[16] = {
'\0'
};
33
uint8 type = 0;
34
uint32 offset = 0;
35
uint32 size = 0;
36
uint32 packedSize = 0;
37
};
38
39
struct
ResourceWin31
{
40
static
const
char
*FILENAME;
41
42
Common::File
_f;
43
Win31BankEntry
*_entries =
nullptr
;
44
int
_entriesCount = 0;
45
uint8 *_textBuf =
nullptr
;
46
const
char
*_stringsTable[614] = {
nullptr
};
47
48
ResourceWin31
();
49
~
ResourceWin31
();
50
51
bool
readEntries();
52
uint8 *loadFile(
int
num, uint8 *dst, uint32 *size);
53
void
readStrings();
54
const
char
*getString(
int
num)
const
;
55
const
char
*getMusicName(
int
num)
const
;
56
};
57
58
}
// namespace Awe
59
60
#endif
Awe::ResourceWin31
Definition:
resource_win31.h:39
Common::File
Definition:
file.h:47
Awe
Definition:
aifc_player.h:29
Awe::Win31BankEntry
Definition:
resource_win31.h:31
engines
awe
resource_win31.h
Generated on Wed Sep 3 2025 09:07:57 for ScummVM API documentation by
1.8.13