-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGlobalVars.h
67 lines (57 loc) · 3.02 KB
/
GlobalVars.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/****************************************************************************\
* *
* GlobalVars.h *
* *
* The global variables for the WL project *
* *
* (c) 2012-2019 by CH, Copyright 2019-2025 Valerio Messina *
* *
* V 2.10 - 20250106 *
* *
* GlobalVars.h is part of Wilderland - A Hobbit Environment *
* Wilderland is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* Wilderland is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with Wilderland. If not, see <http://www.gnu.org/licenses/>. *
* *
\****************************************************************************/
#ifndef GLOBALVARS_H
#define GLOBALVARS_H
#include <stdbool.h>
#include "SDLTWE.h"
extern int NoScanLines;
extern int HV; // Hobbit version
extern struct CharSetStruct CharSet;
extern word DictionaryBaseAddress;
extern word ObjectsIndexAddress, ObjectsAddress;
extern bool dockMap; // when true the map is docked
extern SDL_Window* winPtr;
extern SDL_Window* MapWinPtr;
extern SDL_Renderer* renPtr;
extern SDL_Renderer* MapRenPtr;
extern SDL_Surface* MapSfcPtr;
extern struct TextWindowStruct LogWin;
extern struct TextWindowStruct GameWin;
extern struct TextWindowStruct HelpWin;
extern struct TextWindowStruct ObjWin;
extern struct TextWindowStruct MapWin;
// select the CPU emulator, CPUEMUL must be: eZ80 or ez80emu, see Makefile
#if CPUEMUL == eZ80
extern Z80 z80; // my Z80 processor
#endif
#if CPUEMUL == ez80emu
extern Z80_STATE z80; // my Z80 processor
extern int context;
#endif
extern byte ZXmem[]; // Spectrum 64 kB memory
extern SDL_Keycode CurrentPressedKey; // used by InZ80()
extern uint16_t CurrentPressedMod; // used by InZ80()
#endif /* GLOBAL_VARS_H */