ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 "common/stream.h"
27 #include "m4/adv_r/adv.h"
28 #include "m4/fileio/sys_file.h"
29 #include "m4/graphics/gr_buff.h"
30 #include "m4/gui/gui.h"
31 #include "m4/m4_types.h"
32 
33 namespace M4 {
34 
35 extern M4sprite *kernel_CreateThumbnail(int32 *spriteSize);
36 extern bool kernel_CreateSSFromGrBuff(GrBuff *myBuff, RGB8 *myPalette, bool completePal, const char *ssName);
37 
38 extern bool kernel_load_room(int minPalEntry, int maxPalEntry, SceneDef *rdef, GrBuff **scr_orig_data, GrBuff **scr_orig);
39 extern void kernel_unload_room(SceneDef *rdef, GrBuff **code_data, GrBuff **loadBuffer);
40 
41 extern int kernel_save_game(int slot, const char *desc, int32 sizeofDesc, M4sprite *thumbNail, int32 sizeofThumbData);
42 extern bool kernel_load_game(int slot);
43 extern bool kernel_save_game_exists(int32 slot);
44 extern int32 extract_room_num(const Common::String &name);
45 
46 extern bool kernel_load_variant(const char *variant);
47 extern GrBuff *load_codes(SysFile *code_file);
48 extern bool load_background(SysFile *pic_file, GrBuff **loadBuffer, RGB8 *palette);
49 
50 extern bool load_picture_and_codes(SysFile *pic_file, SysFile *code_file, GrBuff **loadBuf, GrBuff **code_data, uint8 minPalEntry, uint8 maxPalEntry);
51 
52 extern bool kernel_load_code_variant(SceneDef *rdef, char *variant, GrBuff **codeData);
53 
54 extern void kernel_current_background_name(char *result);
55 extern void kernel_current_codes_name(char *result);
56 extern void screen_capture(RGB8 *masterPalette);
57 extern Common::String expand_name_2_RAW(const Common::String &name, int32 room_num);
58 extern Common::String expand_name_2_HMP(const Common::String &name, int32 room_num);
59 
60 } // End of namespace M4
61 
62 #endif
Definition: str.h:59
Definition: database.h:28