Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
configdb.h
Go to the documentation of this file.
1 /* A work-in-progess MEGA65 (Commodore 65 clone origins) emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2016-2022 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_MEGA65_CONFIGDB_H_INCLUDED
20 #define XEMU_MEGA65_CONFIGDB_H_INCLUDED
21 
22 /* Important WARNING:
23  * This is a trap! If you have something here with '#ifdef', it's quite possible that the macro is
24  * not defined here, but defined elsewhere, thus the emulator sees totally different structs for
25  * real but the problem is hidden! That is, be very careful at configdb_st (the type definition
26  * itself also at the usage!) that should be only dependent on macros defined in xemu-target.h,
27  * since that header file is always included by the build system, at command line level. */
28 
29 
30 struct configdb_st {
33  char *disk8;
34  char *disk9;
35  char *fpga;
36  char *hickup;
37  char *hickuprep;
38  char *extbanner;
39  char *extcramutils;
40  char *extinitrom;
41  char *extchrwom;
42  char *extflashutil;
43  char *extonboard;
44  char *extfreezer;
45  char *hdosdir;
46  char *rom;
47  int romfromsd;
49  char *prg;
50  char *sdimg;
51  char *dumpmem;
52 #ifdef XEMU_SNAPSHOT_SUPPORT
53  char *snapload;
54  char *snapsave;
55 #endif
56 #ifdef HAS_UARTMON_SUPPORT
57  char *uartmon;
58 #endif
59 #ifdef HAVE_XEMU_INSTALLER
60  char *installer;
61 #endif
62 #ifdef HAVE_ETHERTAP
63  char *ethertap;
64 #endif
65 #ifdef HID_KBD_MAP_CFG_SUPPORT
66  char *keymap;
67 #endif
68  char *selectedgui;
72  int hdosvirt;
81 #ifdef VIRTUAL_DISK_IMAGE_SUPPORT
82  int virtsd;
83 #endif
84 #ifdef FAKE_TYPING_SUPPORT
85  int go64;
86  int autoload;
87 #endif
89  int syscon;
90  int dmarev;
91  int mega65_model; // $FF = Xemu/others, 1/2/3 = MEGA65 PCB rev 1/2/3, $40=nexys4, $41=nexys4ddr, $42=nexys4ddr-widget, $FD=wukong, $FE=simulation
92  int hicked;
93  int prgmode;
95 #ifdef HAVE_XEMU_UMON
96  int umon;
97 #endif
98  int sdlrenderquality;
101  double fast_mhz;
102  int nosound;
103  int noopl3;
104  int sidmask;
106 };
107 
108 extern struct configdb_st configdb;
109 
110 extern void configdb_define_emulator_options ( size_t size );
111 
112 #endif
configdb_st::hyperdebugfreezer
int hyperdebugfreezer
Definition: configdb.h:76
configdb_st::romfromsd
int romfromsd
Definition: configdb.h:47
configdb_st::audiobuffersize
int audiobuffersize
Definition: configdb.h:105
configdb_st::extinitrom
char * extinitrom
Definition: configdb.h:40
configdb_st::hickuprep
char * hickuprep
Definition: configdb.h:37
configdb_st::fullscreen_requested
int fullscreen_requested
Definition: configdb.h:35
configdb_st::prg
char * prg
Definition: configdb.h:33
configdb_st::useinitrom
int useinitrom
Definition: configdb.h:79
configdb_st::init_videostd
int init_videostd
Definition: configdb.h:70
configdb_st::extonboard
char * extonboard
Definition: configdb.h:43
configdb_st::fpga
char * fpga
Definition: configdb.h:35
configdb_st::extchrwom
char * extchrwom
Definition: configdb.h:41
configdb_st::rtc_hour_offset
int rtc_hour_offset
Definition: configdb.h:94
configdb_st::mastervolume
int mastervolume
Definition: configdb.h:100
configdb_st::extcramutils
char * extcramutils
Definition: configdb.h:39
configdb_st::extfreezer
char * extfreezer
Definition: configdb.h:44
configdb_st::skip_unhandled_mem
int skip_unhandled_mem
Definition: configdb.h:88
configdb_st::usestubrom
int usestubrom
Definition: configdb.h:78
configdb_st::go64
int go64
Definition: configdb.h:34
configdb_st::sidmask
int sidmask
Definition: configdb.h:104
configdb_st::rom
char * rom
Definition: configdb.h:32
configdb_st::hdosvirt
int hdosvirt
Definition: configdb.h:72
configdb_st::disk8
char * disk8
Definition: configdb.h:30
configdb_st::snapsave
char * snapsave
Definition: configdb.h:33
configdb_st::keymap
char * keymap
Definition: configdb.h:32
configdb_st::fullborders
int fullborders
Definition: configdb.h:71
configdb_st::cpusinglestep
int cpusinglestep
Definition: configdb.h:32
configdb_st::sdlrenderquality
int sdlrenderquality
Definition: configdb.h:35
configdb_st::hickup
char * hickup
Definition: configdb.h:36
configdb_st::extbanner
char * extbanner
Definition: configdb.h:38
configdb_st::hicked
int hicked
Definition: configdb.h:92
configdb
struct configdb_st configdb
Definition: configdb.c:34
configdb_st::force_videostd
int force_videostd
Definition: configdb.h:69
configdb_st::autoload
int autoload
Definition: configdb.h:34
configdb_st::useutilmenu
int useutilmenu
Definition: configdb.h:80
configdb_st::allowfreezer
int allowfreezer
Definition: configdb.h:74
configdb_st::hdosdir
char * hdosdir
Definition: configdb.h:45
configdb_st::show_drive_led
int show_drive_led
Definition: configdb.h:73
configdb_define_emulator_options
void configdb_define_emulator_options(void)
Definition: configdb.c:36
configdb_st::selectedgui
char * selectedgui
Definition: configdb.h:68
configdb_st::syscon
int syscon
Definition: configdb.h:34
size
int size
Definition: inject.c:37
configdb_st::hyperdebug
int hyperdebug
Definition: configdb.h:75
configdb_st::stereoseparation
int stereoseparation
Definition: configdb.h:99
configdb_st::sdimg
char * sdimg
Definition: configdb.h:45
configdb_st::mega65_model
int mega65_model
Definition: configdb.h:91
configdb_st::snapload
char * snapload
Definition: configdb.h:33
configdb_st::disk9
char * disk9
Definition: configdb.h:31
configdb_st::dmarev
int dmarev
Definition: configdb.h:35
configdb_st::prgmode
int prgmode
Definition: configdb.h:35
configdb_st::fast_mhz
double fast_mhz
Definition: configdb.h:101
configdb_st::noopl3
int noopl3
Definition: configdb.h:103
configdb_st::defd81fromsd
int defd81fromsd
Definition: configdb.h:48
configdb_st::dumpmem
char * dumpmem
Definition: configdb.h:32
configdb_st::hyperserialascii
int hyperserialascii
Definition: configdb.h:77
configdb_st
Definition: configdb.h:29
configdb_st::nosound
int nosound
Definition: configdb.h:102
configdb_st::extflashutil
char * extflashutil
Definition: configdb.h:42