Debian Codegraph @

mednafen/settings-common.h

raw symbols SCIP
1 #cxx . . $ `<file>/mednafen/settings-common.h`/ifndef _MDFN_SETTINGS_COMMON_H
2 #define _MDFN_SETTINGS_COMMON_Hcxx . . $ `mednafen/settings-common.h:2:9`!
3 typedef enumcxx . . $ $anonymous_type_6f861c0263baae45_0#
4 {
5 // Actual base types
6 MDFNST_INTcxx . . $ MDFNST_INT. = 0, // (signed), int8, int16, int32, int64(saved as)
7 MDFNST_UINTcxx . . $ MDFNST_UINT., // uint8, uint16, uint32, uint64(saved as)
8 MDFNST_BOOLcxx . . $ MDFNST_BOOL., // bool. bool. bool!
9 MDFNST_FLOATcxx . . $ MDFNST_FLOAT., // float, double(saved as).
10 MDFNST_STRINGcxx . . $ MDFNST_STRING.,
11 MDFNST_ENUMcxx . . $ MDFNST_ENUM., // Handled like a string, but validated against the enumeration list, and MDFN_GetSettingUI() returns the number in the enumeration list.
12
13 MDFNST_ALIAScxx . . $ MDFNST_ALIAS.
14 } MDFNSettingTypecxx . . $ MDFNSettingType#;
15
16
17 //#define MDFNST_EX_DRIVER = (1 << 16), // If this is not set, the setting is assumed to be internal. This...should probably be set automatically?
18
19 #define MDFNSF_NOFLAGScxx . . $ `mednafen/settings-common.h:19:9`! 0 // Always 0, makes setting definitions prettier...maybe.
20
21 // TODO(cats)
22 #define MDFNSF_CAT_INPUTcxx . . $ `mednafen/settings-common.h:22:9`! (1 << 8)
23 #define MDFNSF_CAT_SOUNDcxx . . $ `mednafen/settings-common.h:23:9`! (1 << 9)
24 #define MDFNSF_CAT_VIDEOcxx . . $ `mednafen/settings-common.h:24:9`! (1 << 10)
25
26 #define MDFNSF_EMU_STATEcxx . . $ `mednafen/settings-common.h:26:9`! (1 << 17) // If the setting affects emulation from the point of view of the emulated program
27 #define MDFNSF_UNTRUSTED_SAFEcxx . . $ `mednafen/settings-common.h:27:9`! (1 << 18) // If it's safe for an untrusted source to modify it, probably only used in conjunction with
28 // MDFNST_EX_EMU_STATE and network play
29
30 #define MDFNSF_SUPPRESS_DOCcxx . . $ `mednafen/settings-common.h:30:9`! (1 << 19) // Suppress documentation generation for this setting.
31 #define MDFNSF_COMMON_TEMPLATEcxx . . $ `mednafen/settings-common.h:31:9`! (1 << 20) // Auto-generated common template setting(like nes.xscale, pce.xscale, vb.xscale, nes.enable, pce.enable, vb.enable)
32 // TODO:
33 // #define MDFNSF_WILL_BREAK_GAMES (1 << ) // If changing the value of the setting from the default value will break games/programs that would otherwise work.
34
35 // TODO(in progress):
36 #define MDFNSF_REQUIRES_RELOADcxx . . $ `mednafen/settings-common.h:36:9`! (1 << 24) // If a game reload is required for the setting to take effect.
37 #define MDFNSF_REQUIRES_RESTARTcxx . . $ `mednafen/settings-common.h:37:9`! (1 << 25) // If Mednafen restart is required for the setting to take effect.
38
39 typedef structcxx . . $ $anonymous_type_6f861c0263baae45_1#
40 {
41 const char *stringcxx . . $ $anonymous_type_6f861c0263baae45_1#string.;
42 int numbercxx . . $ $anonymous_type_6f861c0263baae45_1#number.;
43 const char *descriptioncxx . . $ $anonymous_type_6f861c0263baae45_1#description.; // Short
44 const char *description_extracxx . . $ $anonymous_type_6f861c0263baae45_1#description_extra.; // Extra verbose text appended to the short description.
45 } MDFNSetting_EnumListcxx . . $ MDFNSetting_EnumList#;
46
47 typedef structcxx . . $ $anonymous_type_6f861c0263baae45_2#
48 {
49 const char *namecxx . . $ $anonymous_type_6f861c0263baae45_2#name.;
50 uint32cxx . . $ uint32# flagscxx . . $ $anonymous_type_6f861c0263baae45_2#flags.;
51 const char *descriptioncxx . . $ $anonymous_type_6f861c0263baae45_2#description.; // Short
52 const char *description_extracxx . . $ $anonymous_type_6f861c0263baae45_2#description_extra.;
53
54 MDFNSettingTypecxx . . $ MDFNSettingType# typecxx . . $ $anonymous_type_6f861c0263baae45_2#type.;
55 const char *default_valuecxx . . $ $anonymous_type_6f861c0263baae45_2#default_value.;
56 const char *minimumcxx . . $ $anonymous_type_6f861c0263baae45_2#minimum.;
57 const char *maximumcxx . . $ $anonymous_type_6f861c0263baae45_2#maximum.;
58 bool (*validate_funccxx . . $ $anonymous_type_6f861c0263baae45_2#validate_func.)(const char *name, const char *value);
59 void (*ChangeNotificationcxx . . $ $anonymous_type_6f861c0263baae45_2#ChangeNotification.)(const char *name);
60 const MDFNSetting_EnumListcxx . . $ MDFNSetting_EnumList# *enum_listcxx . . $ $anonymous_type_6f861c0263baae45_2#enum_list.;
61 } MDFNSettingcxx . . $ MDFNSetting#;
62
63 typedef struct __MDFNCScxx . . $ __MDFNCS#
64 {
65 char *namecxx . . $ __MDFNCS#name.;
66 char *valuecxx . . $ __MDFNCS#value.;
67 char *game_overridecxx . . $ __MDFNCS#game_override.; // per-game setting override(netplay_override > game_override > value, in precedence)
68
69 const MDFNSettingcxx . . $ MDFNSetting# *desccxx . . $ __MDFNCS#desc.;
70 void (*ChangeNotificationcxx . . $ __MDFNCS#ChangeNotification.)(const char *name);
71
72 uint32cxx . . $ uint32# name_hashcxx . . $ __MDFNCS#name_hash.;
73 } MDFNCScxx . . $ MDFNCS#;
74
75 #endif