ScummVM API documentation
adv_file.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef M4_ADV_R_ADV_FILE_H
24#define M4_ADV_R_ADV_FILE_H
25
26#include "m4/adv_r/adv.h"
27#include "m4/fileio/sys_file.h"
28#include "m4/graphics/gr_buff.h"
29#include "m4/gui/gui.h"
30#include "m4/m4_types.h"
31
32namespace M4 {
33
34extern M4sprite *kernel_CreateThumbnail(int32 *spriteSize);
35extern bool kernel_CreateSSFromGrBuff(GrBuff *myBuff, RGB8 *myPalette, bool completePal, const char *ssName);
36
37extern bool kernel_load_room(int minPalEntry, int maxPalEntry, SceneDef *rdef, GrBuff **scr_orig_data, GrBuff **scr_orig);
38extern void kernel_unload_room(SceneDef *rdef, GrBuff **code_data, GrBuff **loadBuffer);
39
40extern int kernel_save_game(int slot, const char *desc, int32 sizeofDesc, M4sprite *thumbNail, int32 sizeofThumbData);
41extern bool kernel_load_game(int slot);
42extern bool kernel_save_game_exists(int32 slot);
43extern int32 extract_room_num(const Common::String &name);
44
45extern bool kernel_load_variant(const char *variant);
46extern GrBuff *load_codes(SysFile *code_file);
47extern bool load_background(SysFile *pic_file, GrBuff **loadBuffer, RGB8 *palette);
48
49extern bool load_picture_and_codes(SysFile *pic_file, SysFile *code_file, GrBuff **loadBuf, GrBuff **code_data, uint8 minPalEntry, uint8 maxPalEntry);
50
51extern bool kernel_load_code_variant(SceneDef *rdef, char *variant, GrBuff **codeData);
52
53extern void kernel_current_background_name(char *result);
54extern void kernel_current_codes_name(char *result);
55extern void screen_capture(RGB8 *masterPalette);
56extern Common::String expand_name_2_RAW(const Common::String &name, int32 room_num);
57extern Common::String expand_name_2_HMP(const Common::String &name, int32 room_num);
58
59} // End of namespace M4
60
61#endif
Definition: str.h:59
Definition: database.h:28