Debian Codegraph @

mednafen/git.h

raw symbols SCIP
1 #cxx . . $ `<file>/mednafen/git.h`/ifndef _GIT_H
2 #define _GIT_Hcxx . . $ `mednafen/git.h:2:9`!
3
4 #include <string>
5
6 #include "video.h"cxx . . $ `<file>/mednafen/video.h`/
7
8 typedef structcxx . . $ $anonymous_type_643ef407c229d02_0#
9 {
10 const char *extensioncxx . . $ $anonymous_type_643ef407c229d02_0#extension.; // Example ".nes"
11 const char *descriptioncxx . . $ $anonymous_type_643ef407c229d02_0#description.; // Example "iNES Format ROM Image"
12 } FileExtensionSpecStructcxx . . $ FileExtensionSpecStruct#;
13
14 #include "file.h"cxx . . $ `<file>/mednafen/file.h`/
15
16 enumcxx . . $ $anonymous_type_643ef407c229d02_1#
17 {
18 MDFN_ROTATE0cxx . . $ MDFN_ROTATE0. = 0,
19 MDFN_ROTATE90cxx . . $ MDFN_ROTATE90.,
20 MDFN_ROTATE180cxx . . $ MDFN_ROTATE180.,
21 MDFN_ROTATE270cxx . . $ MDFN_ROTATE270.
22 };
23
24 typedef enumcxx . . $ $anonymous_type_643ef407c229d02_2#
25 {
26 VIDSYS_NONEcxx . . $ VIDSYS_NONE., // Can be used internally in system emulation code, but it is an error condition to let it continue to be
27 // after the Load() or LoadCD() function returns!
28 VIDSYS_PALcxx . . $ VIDSYS_PAL.,
29 VIDSYS_PAL_Mcxx . . $ VIDSYS_PAL_M., // Same timing as NTSC, but uses PAL-style colour encoding
30 VIDSYS_NTSCcxx . . $ VIDSYS_NTSC.,
31 VIDSYS_SECAMcxx . . $ VIDSYS_SECAM.
32 } VideoSystemscxx . . $ VideoSystems#;
33
34 typedef enumcxx . . $ $anonymous_type_643ef407c229d02_3#
35 {
36 GMT_CARTcxx . . $ GMT_CART., // Self-explanatory!
37 GMT_ARCADEcxx . . $ GMT_ARCADE., // VS Unisystem, PC-10...
38 GMT_DISKcxx . . $ GMT_DISK., // Famicom Disk System, mostly
39 GMT_CDROMcxx . . $ GMT_CDROM., // PC Engine CD, PC-FX
40 GMT_PLAYERcxx . . $ GMT_PLAYER. // Music player(NSF, HES, GSF)
41 } GameMediumTypescxx . . $ GameMediumTypes#;
42
43 #include "state.h"cxx . . $ `<file>/mednafen/state.h`/
44 #include "settings-common.h"cxx . . $ `<file>/mednafen/settings-common.h`/
45
46 typedef enumcxx . . $ $anonymous_type_643ef407c229d02_4#
47 {
48 IDIT_BUTTONcxx . . $ IDIT_BUTTON., // 1-bit
49 IDIT_BUTTON_CAN_RAPIDcxx . . $ IDIT_BUTTON_CAN_RAPID., // 1-bit
50 IDIT_BUTTON_BYTEcxx . . $ IDIT_BUTTON_BYTE., // 8-bits, Button as a byte instead of a bit.
51 IDIT_X_AXIScxx . . $ IDIT_X_AXIS., // (mouse) 32-bits, signed, fixed-point: 1.15.16 - in-screen/window range: [0.0, nominal_width)
52 IDIT_Y_AXIScxx . . $ IDIT_Y_AXIS., // (mouse) 32-bits, signed, fixed-point: 1.15.16 - in-screen/window range: [0.0, nominal_height)
53 IDIT_X_AXIS_RELcxx . . $ IDIT_X_AXIS_REL., // (mouse) 32-bits, signed
54 IDIT_Y_AXIS_RELcxx . . $ IDIT_Y_AXIS_REL., // (mouse) 32-bits, signed
55 IDIT_BYTE_SPECIALcxx . . $ IDIT_BYTE_SPECIAL.,
56 IDIT_BUTTON_ANALOGcxx . . $ IDIT_BUTTON_ANALOG., // 32-bits, 0 - 32767
57 IDIT_RUMBLEcxx . . $ IDIT_RUMBLE., // 32-bits, lower 8 bits are weak rumble(0-255), next 8 bits are strong rumble(0-255), 0=no rumble, 255=max rumble. Somewhat subjective, too...
58 // May extend to 16-bit each in the future.
59 // It's also rather a special case of game module->driver code communication.
60 } InputDeviceInputTypecxx . . $ InputDeviceInputType#;
61
62 typedef structcxx . . $ $anonymous_type_643ef407c229d02_5#
63 {
64 const char *SettingNamecxx . . $ $anonymous_type_643ef407c229d02_5#SettingName.; // No spaces, shouldbe all a-z0-9 and _. Definitely no ~!
65 const char *Namecxx . . $ $anonymous_type_643ef407c229d02_5#Name.;
66 /*const InputDeviceInputVB VirtButton;*/
67 const int ConfigOrdercxx . . $ $anonymous_type_643ef407c229d02_5#ConfigOrder.; // Configuration order during in-game config process, -1 for no config.
68 const InputDeviceInputTypecxx . . $ InputDeviceInputType# Typecxx . . $ $anonymous_type_643ef407c229d02_5#Type.;
69 const char *ExcludeNamecxx . . $ $anonymous_type_643ef407c229d02_5#ExcludeName.; // SettingName of a button that can't be pressed at the same time as this button
70 // due to physical limitations.
71
72 const char *RotateNamecxx . . $ $anonymous_type_643ef407c229d02_5#RotateName.[3]; // 90, 180, 270
73 //const char *Rotate180Name;
74 //const char *Rotate270Name;
75 } InputDeviceInputInfoStructcxx . . $ InputDeviceInputInfoStruct#;
76
77 typedef structcxx . . $ $anonymous_type_643ef407c229d02_6#
78 {
79 const char *ShortNamecxx . . $ $anonymous_type_643ef407c229d02_6#ShortName.;
80 const char *FullNamecxx . . $ $anonymous_type_643ef407c229d02_6#FullName.;
81 const char *Descriptioncxx . . $ $anonymous_type_643ef407c229d02_6#Description.;
82
83 //struct InputPortInfoStruct *PortExpanderDeviceInfo;
84 const void *PortExpanderDeviceInfocxx . . $ $anonymous_type_643ef407c229d02_6#PortExpanderDeviceInfo.; // DON'T USE, IT'S NOT IMPLEMENTED PROPERLY CURRENTLY.
85 int NumInputscxx . . $ $anonymous_type_643ef407c229d02_6#NumInputs.; // Usually just the number of buttons....OR if PortExpanderDeviceInfo is non-NULL, it's the number of input
86 // ports this port expander device provides.
87 const InputDeviceInputInfoStructcxx . . $ InputDeviceInputInfoStruct# *IDIIcxx . . $ $anonymous_type_643ef407c229d02_6#IDII.;
88 } InputDeviceInfoStructcxx . . $ InputDeviceInfoStruct#;
89
90 typedef structcxx . . $ $anonymous_type_643ef407c229d02_7#
91 {
92 const char *ShortNamecxx . . $ $anonymous_type_643ef407c229d02_7#ShortName.;
93 const char *FullNamecxx . . $ $anonymous_type_643ef407c229d02_7#FullName.;
94 int NumTypescxx . . $ $anonymous_type_643ef407c229d02_7#NumTypes.; // Number of unique input devices available for this input port
95 InputDeviceInfoStructcxx . . $ InputDeviceInfoStruct# *DeviceInfocxx . . $ $anonymous_type_643ef407c229d02_7#DeviceInfo.;
96 const char *DefaultDevicecxx . . $ $anonymous_type_643ef407c229d02_7#DefaultDevice.; // Default device for this port.
97 } InputPortInfoStructcxx . . $ InputPortInfoStruct#;
98
99 typedef structcxx . . $ $anonymous_type_643ef407c229d02_8#
100 {
101 int InputPortscxx . . $ $anonymous_type_643ef407c229d02_8#InputPorts.;
102 const InputPortInfoStructcxx . . $ InputPortInfoStruct# *Typescxx . . $ $anonymous_type_643ef407c229d02_8#Types.;
103 } InputInfoStructcxx . . $ InputInfoStruct#;
104
105 struct MemoryPatchcxx . . $ MemoryPatch#;
106
107 struct CheatFormatStructcxx . . $ CheatFormatStruct#
108 {
109 const char *FullNamecxx . . $ CheatFormatStruct#FullName.; //"Game Genie", "GameShark", "Pro Action Catplay", etc.
110 const char *Descriptioncxx . . $ CheatFormatStruct#Description.; // Whatever?
111
112 bool (*DecodeCheatcxx . . $ CheatFormatStruct#DecodeCheat.)(const stdcxx . . $ std/::stringcxx . . $ std/string#& cheat_string, MemoryPatchcxx . . $ MemoryPatch#* patch); // *patch should be left as initialized by MemoryPatch::MemoryPatch(), unless this is the
113 // second(or third or whatever) part of a multipart cheat.
114 //
115 // Will throw an std::exception(or derivative) on format error.
116 //
117 // Will return true if this is part of a multipart cheat.
118 };
119
120 struct CheatFormatInfoStructcxx . . $ CheatFormatInfoStruct#
121 {
122 unsigned NumFormatscxx . . $ CheatFormatInfoStruct#NumFormats.;
123
124 CheatFormatStructcxx . . $ CheatFormatStruct# *Formatscxx . . $ CheatFormatInfoStruct#Formats.;
125 };
126
127 // Miscellaneous system/simple commands(power, reset, dip switch toggles, coin insert, etc.)
128 // (for DoSimpleCommand() )
129 enumcxx . . $ $anonymous_type_643ef407c229d02_9#
130 {
131 MDFN_MSC_RESETcxx . . $ MDFN_MSC_RESET. = 0x01,
132 MDFN_MSC_POWERcxx . . $ MDFN_MSC_POWER. = 0x02,
133
134 MDFN_MSC_INSERT_COINcxx . . $ MDFN_MSC_INSERT_COIN. = 0x07,
135
136 // If we ever support arcade systems, we'll abstract DIP switches differently...maybe.
137 MDFN_MSC_TOGGLE_DIP0cxx . . $ MDFN_MSC_TOGGLE_DIP0. = 0x10,
138 MDFN_MSC_TOGGLE_DIP1cxx . . $ MDFN_MSC_TOGGLE_DIP1.,
139 MDFN_MSC_TOGGLE_DIP2cxx . . $ MDFN_MSC_TOGGLE_DIP2.,
140 MDFN_MSC_TOGGLE_DIP3cxx . . $ MDFN_MSC_TOGGLE_DIP3.,
141 MDFN_MSC_TOGGLE_DIP4cxx . . $ MDFN_MSC_TOGGLE_DIP4.,
142 MDFN_MSC_TOGGLE_DIP5cxx . . $ MDFN_MSC_TOGGLE_DIP5.,
143 MDFN_MSC_TOGGLE_DIP6cxx . . $ MDFN_MSC_TOGGLE_DIP6.,
144 MDFN_MSC_TOGGLE_DIP7cxx . . $ MDFN_MSC_TOGGLE_DIP7.,
145 MDFN_MSC_TOGGLE_DIP8cxx . . $ MDFN_MSC_TOGGLE_DIP8.,
146 MDFN_MSC_TOGGLE_DIP9cxx . . $ MDFN_MSC_TOGGLE_DIP9.,
147 MDFN_MSC_TOGGLE_DIP10cxx . . $ MDFN_MSC_TOGGLE_DIP10.,
148 MDFN_MSC_TOGGLE_DIP11cxx . . $ MDFN_MSC_TOGGLE_DIP11.,
149 MDFN_MSC_TOGGLE_DIP12cxx . . $ MDFN_MSC_TOGGLE_DIP12.,
150 MDFN_MSC_TOGGLE_DIP13cxx . . $ MDFN_MSC_TOGGLE_DIP13.,
151 MDFN_MSC_TOGGLE_DIP14cxx . . $ MDFN_MSC_TOGGLE_DIP14.,
152 MDFN_MSC_TOGGLE_DIP15cxx . . $ MDFN_MSC_TOGGLE_DIP15.,
153
154
155 // n of DISKn translates to is emulation module specific.
156 MDFN_MSC_INSERT_DISK0cxx . . $ MDFN_MSC_INSERT_DISK0. = 0x20,
157 MDFN_MSC_INSERT_DISK1cxx . . $ MDFN_MSC_INSERT_DISK1.,
158 MDFN_MSC_INSERT_DISK2cxx . . $ MDFN_MSC_INSERT_DISK2.,
159 MDFN_MSC_INSERT_DISK3cxx . . $ MDFN_MSC_INSERT_DISK3.,
160 MDFN_MSC_INSERT_DISK4cxx . . $ MDFN_MSC_INSERT_DISK4.,
161 MDFN_MSC_INSERT_DISK5cxx . . $ MDFN_MSC_INSERT_DISK5.,
162 MDFN_MSC_INSERT_DISK6cxx . . $ MDFN_MSC_INSERT_DISK6.,
163 MDFN_MSC_INSERT_DISK7cxx . . $ MDFN_MSC_INSERT_DISK7.,
164 MDFN_MSC_INSERT_DISK8cxx . . $ MDFN_MSC_INSERT_DISK8.,
165 MDFN_MSC_INSERT_DISK9cxx . . $ MDFN_MSC_INSERT_DISK9.,
166 MDFN_MSC_INSERT_DISK10cxx . . $ MDFN_MSC_INSERT_DISK10.,
167 MDFN_MSC_INSERT_DISK11cxx . . $ MDFN_MSC_INSERT_DISK11.,
168 MDFN_MSC_INSERT_DISK12cxx . . $ MDFN_MSC_INSERT_DISK12.,
169 MDFN_MSC_INSERT_DISK13cxx . . $ MDFN_MSC_INSERT_DISK13.,
170 MDFN_MSC_INSERT_DISK14cxx . . $ MDFN_MSC_INSERT_DISK14.,
171 MDFN_MSC_INSERT_DISK15cxx . . $ MDFN_MSC_INSERT_DISK15.,
172
173 MDFN_MSC_INSERT_DISKcxx . . $ MDFN_MSC_INSERT_DISK. = 0x30,
174 MDFN_MSC_EJECT_DISKcxx . . $ MDFN_MSC_EJECT_DISK. = 0x31,
175
176 // This command should select the next disk or disk side in the set and use MDFN_DispMessage() to show which disk is selected.
177 // (If it's only allowed while a disk is ejected, or not, is emulation module specific.
178 MDFN_MSC_SELECT_DISKcxx . . $ MDFN_MSC_SELECT_DISK. = 0x32,
179
180 MDFN_MSC__LASTcxx . . $ MDFN_MSC__LAST. = 0x3F // WARNING: Increasing(or having the enum'd value of a command greater than this :b) this will necessitate a change to the netplay protocol.
181 };
182
183 typedef structcxx . . $ $anonymous_type_643ef407c229d02_10#
184 {
185 // Pitch(32-bit) must be equal to width and >= the "fb_width" specified in the MDFNGI struct for the emulated system.
186 // Height must be >= to the "fb_height" specified in the MDFNGI struct for the emulated system.
187 // The framebuffer pointed to by surface->pixels is written to by the system emulation code.
188 MDFN_Surface *surfacecxx . . $ $anonymous_type_643ef407c229d02_10#surface.;
189
190 // Will be set to TRUE if the video pixel format has changed since the last call to Emulate(), FALSE otherwise.
191 // Will be set to TRUE on the first call to the Emulate() function/method
192 bool VideoFormatChangedcxx . . $ $anonymous_type_643ef407c229d02_10#VideoFormatChanged.;
193
194 // Set by the system emulation code every frame, to denote the horizontal and vertical offsets of the image, and the size
195 // of the image. If the emulated system sets the elements of LineWidths, then the horizontal offset(x) and width(w) of this structure
196 // are ignored while drawing the image.
197 MDFN_Rect DisplayRectcxx . . $ $anonymous_type_643ef407c229d02_10#DisplayRect.;
198
199 // Pointer to an array of MDFN_Rect, number of elements = fb_height, set by the driver code. Individual MDFN_Rect structs written
200 // to by system emulation code. If the emulated system doesn't support multiple screen widths per frame, or if you handle
201 // such a situation by outputting at a constant width-per-frame that is the least-common-multiple of the screen widths, then
202 // you can ignore this. If you do wish to use this, you must set all elements every frame.
203 int32_tcxx . . $ int32_t# *LineWidthscxx . . $ $anonymous_type_643ef407c229d02_10#LineWidths.;
204
205 // TODO
206 bool *IsFMVcxx . . $ $anonymous_type_643ef407c229d02_10#IsFMV.;
207
208 // Set(optionally) by emulation code. If InterlaceOn is true, then assume field height is 1/2 DisplayRect.h, and
209 // only every other line in surface (with the start line defined by InterlacedField) has valid data
210 // (it's up to internal Mednafen code to deinterlace it).
211 bool InterlaceOncxx . . $ $anonymous_type_643ef407c229d02_10#InterlaceOn.;
212 bool InterlaceFieldcxx . . $ $anonymous_type_643ef407c229d02_10#InterlaceField.;
213
214 // Skip rendering this frame if true. Set by the driver code.
215 int skipcxx . . $ $anonymous_type_643ef407c229d02_10#skip.;
216
217 //
218 // If sound is disabled, the driver code must set SoundRate to false, SoundBuf to NULL, SoundBufMaxSize to 0.
219
220 // Will be set to TRUE if the sound format(only rate for now, at least) has changed since the last call to Emulate(), FALSE otherwise.
221 // Will be set to TRUE on the first call to the Emulate() function/method
222 bool SoundFormatChangedcxx . . $ $anonymous_type_643ef407c229d02_10#SoundFormatChanged.;
223
224 // Sound rate. Set by driver side.
225 double SoundRatecxx . . $ $anonymous_type_643ef407c229d02_10#SoundRate.;
226
227 // Pointer to sound buffer, set by the driver code, that the emulation code should render sound to.
228 // Guaranteed to be at least 500ms in length, but emulation code really shouldn't exceed 40ms or so. Additionally, if emulation code
229 // generates >= 100ms,
230 // DEPRECATED: Emulation code may set this pointer to a sound buffer internal to the emulation module.
231 int16cxx . . $ int16# *SoundBufcxx . . $ $anonymous_type_643ef407c229d02_10#SoundBuf.;
232
233 // Maximum size of the sound buffer, in frames. Set by the driver code.
234 int32cxx . . $ int32# SoundBufMaxSizecxx . . $ $anonymous_type_643ef407c229d02_10#SoundBufMaxSize.;
235
236 // Number of frames currently in internal sound buffer. Set by the system emulation code, to be read by the driver code.
237 int32cxx . . $ int32# SoundBufSizecxx . . $ $anonymous_type_643ef407c229d02_10#SoundBufSize.;
238 int32cxx . . $ int32# SoundBufSizeALMScxx . . $ $anonymous_type_643ef407c229d02_10#SoundBufSizeALMS.; // SoundBufSize value at last MidSync(), 0
239 // if mid sync isn't implemented for the emulation module in use.
240
241 // Number of cycles that this frame consumed, using MDFNGI::MasterClock as a time base.
242 // Set by emulation code.
243 int64cxx . . $ int64# MasterCyclescxx . . $ $anonymous_type_643ef407c229d02_10#MasterCycles.;
244 int64cxx . . $ int64# MasterCyclesALMScxx . . $ $anonymous_type_643ef407c229d02_10#MasterCyclesALMS.; // MasterCycles value at last MidSync(), 0
245 // if mid sync isn't implemented for the emulation module in use.
246
247 // Current sound volume(0.000...<=volume<=1.000...). If, after calling Emulate(), it is still != 1, Mednafen will handle it internally.
248 // Emulation modules can handle volume themselves if they like, for speed reasons. If they do, afterwards, they should set its value to 1.
249 double SoundVolumecxx . . $ $anonymous_type_643ef407c229d02_10#SoundVolume.;
250
251 // Current sound speed multiplier. Set by the driver code. If, after calling Emulate(), it is still != 1, Mednafen will handle it internally
252 // by resampling the audio. This means that emulation modules can handle(and set the value to 1 after handling it) it if they want to get the most
253 // performance possible. HOWEVER, emulation modules must make sure the value is in a range(with minimum and maximum) that their code can handle
254 // before they try to handle it.
255 double soundmultipliercxx . . $ $anonymous_type_643ef407c229d02_10#soundmultiplier.;
256
257 // True if we want to rewind one frame. Set by the driver code.
258 bool NeedRewindcxx . . $ $anonymous_type_643ef407c229d02_10#NeedRewind.;
259
260 // Sound reversal during state rewinding is normally done in mednafen.cpp, but
261 // individual system emulation code can also do it if this is set, and clear it after it's done.
262 // (Also, the driver code shouldn't touch this variable)
263 bool NeedSoundReversecxx . . $ $anonymous_type_643ef407c229d02_10#NeedSoundReverse.;
264
265 } EmulateSpecStructcxx . . $ EmulateSpecStruct#;
266
267 typedef enumcxx . . $ $anonymous_type_643ef407c229d02_11#
268 {
269 MODPRIO_INTERNAL_EXTRA_LOWcxx . . $ MODPRIO_INTERNAL_EXTRA_LOW. = 0, // For "cdplay" module, mostly.
270
271 MODPRIO_INTERNAL_LOWcxx . . $ MODPRIO_INTERNAL_LOW. = 10,
272 MODPRIO_EXTERNAL_LOWcxx . . $ MODPRIO_EXTERNAL_LOW. = 20,
273 MODPRIO_INTERNAL_HIGHcxx . . $ MODPRIO_INTERNAL_HIGH. = 30,
274 MODPRIO_EXTERNAL_HIGHcxx . . $ MODPRIO_EXTERNAL_HIGH. = 40
275 } ModPriocxx . . $ ModPrio#;
276
277 class CDIFcxx . . $ CDIF#;
278
279 typedef structcxx . . $ $anonymous_type_643ef407c229d02_12#
280 {
281 /* Private functions to Mednafen. Do not call directly
282 from the driver code, or else bad things shall happen. Maybe. Probably not, but don't
283 do it(yet)!
284 */
285 // Short system name, lowercase a-z, 0-9, and _ are the only allowable characters!
286 const char *shortnamecxx . . $ $anonymous_type_643ef407c229d02_12#shortname.;
287
288 // Full system name. Preferably English letters, but can be UTF8
289 const char *fullnamecxx . . $ $anonymous_type_643ef407c229d02_12#fullname.;
290
291 // Pointer to an array of FileExtensionSpecStruct, with the last entry being { NULL, NULL } to terminate the list.
292 // This list is used to make best-guess choices, when calling the TestMagic*() functions would be unreasonable, such
293 // as when scanning a ZIP archive for a file to load. The list may also be used in the future for GUI file open windows.
294 const FileExtensionSpecStructcxx . . $ FileExtensionSpecStruct# *FileExtensionscxx . . $ $anonymous_type_643ef407c229d02_12#FileExtensions.;
295
296 ModPriocxx . . $ ModPrio# ModulePrioritycxx . . $ $anonymous_type_643ef407c229d02_12#ModulePriority.;
297
298 void *Debuggercxx . . $ $anonymous_type_643ef407c229d02_12#Debugger.;
299 InputInfoStructcxx . . $ InputInfoStruct# *InputInfocxx . . $ $anonymous_type_643ef407c229d02_12#InputInfo.;
300
301 // Returns 1 on successful load, 0 on fatal error(deprecated: -1 on unrecognized format)
302 int (*Loadcxx . . $ $anonymous_type_643ef407c229d02_12#Load.)(const char *name, MDFNFILEcxx . . $ MDFNFILE# *fp);
303
304 // Return TRUE if the file is a recognized type, FALSE if not.
305 bool (*TestMagiccxx . . $ $anonymous_type_643ef407c229d02_12#TestMagic.)(const char *name, MDFNFILEcxx . . $ MDFNFILE# *fp);
306
307 //
308 // (*CDInterfaces).size() is guaranteed to be >= 1.
309 int (*LoadCDcxx . . $ $anonymous_type_643ef407c229d02_12#LoadCD.)(stdcxx . . $ std/::vectorcxx . . $ std/vector#<CDIFcxx . . $ CDIF# *> *CDInterfaces);
310 bool (*TestMagicCDcxx . . $ $anonymous_type_643ef407c229d02_12#TestMagicCD.)(stdcxx . . $ std/::vectorcxx . . $ std/vector#<CDIFcxx . . $ CDIF# *> *CDInterfaces);
311
312 void (*CloseGamecxx . . $ $anonymous_type_643ef407c229d02_12#CloseGame.)(void);
313
314 void (*SetLayerEnableMaskcxx . . $ $anonymous_type_643ef407c229d02_12#SetLayerEnableMask.)(uint64cxx . . $ uint64# mask); // Video
315 const char *LayerNamescxx . . $ $anonymous_type_643ef407c229d02_12#LayerNames.;
316
317 void (*SetChanEnableMaskcxx . . $ $anonymous_type_643ef407c229d02_12#SetChanEnableMask.)(uint64cxx . . $ uint64# mask); // Audio(TODO, placeholder)
318 const char *ChanNamescxx . . $ $anonymous_type_643ef407c229d02_12#ChanNames.;
319
320 void (*InstallReadPatchcxx . . $ $anonymous_type_643ef407c229d02_12#InstallReadPatch.)(uint32cxx . . $ uint32# address);
321 void (*RemoveReadPatchescxx . . $ $anonymous_type_643ef407c229d02_12#RemoveReadPatches.)(void);
322 uint8cxx . . $ uint8# (*MemReadcxx . . $ $anonymous_type_643ef407c229d02_12#MemRead.)(uint32cxx . . $ uint32# addr);
323
324 #ifdef WANT_NEW_APIcxx . . $ `<built-in>:502:9`!
325 CheatFormatInfoStructcxx . . $ CheatFormatInfoStruct# *CheatFormatInfocxx . . $ $anonymous_type_643ef407c229d02_12#CheatFormatInfo.;
326 #endif
327
328 bool SaveStateAltersStatecxx . . $ $anonymous_type_643ef407c229d02_12#SaveStateAltersState.; // true for bsnes and some libco-style emulators, false otherwise.
329 // Main save state routine, called by the save state code in state.cpp.
330 // When saving, load is set to 0. When loading, load is set to the version field of the save state being loaded.
331 // data_only is true when the save state data is temporary, such as being saved into memory for state rewinding.
332 int (*StateActioncxx . . $ $anonymous_type_643ef407c229d02_12#StateAction.)(StateMemcxx . . $ StateMem# *sm, int load, int data_only);
333
334 void (*Emulatecxx . . $ $anonymous_type_643ef407c229d02_12#Emulate.)(EmulateSpecStructcxx . . $ EmulateSpecStruct# *espec);
335 void (*SetInputcxx . . $ $anonymous_type_643ef407c229d02_12#SetInput.)(int port, const char *type, void *ptr);
336
337 void (*DoSimpleCommandcxx . . $ $anonymous_type_643ef407c229d02_12#DoSimpleCommand.)(int cmd);
338
339 const MDFNSettingcxx . . $ MDFNSetting# *Settingscxx . . $ $anonymous_type_643ef407c229d02_12#Settings.;
340
341 // Time base for EmulateSpecStruct::MasterCycles
342 #define MDFN_MASTERCLOCK_FIXEDcxx . . $ `mednafen/git.h:342:10`!(n) ((int64)((double)(n) * (1LL << 32)))
343 int64cxx . . $ int64# MasterClockcxx . . $ $anonymous_type_643ef407c229d02_12#MasterClock.;
344
345 uint32cxx . . $ uint32# fpscxx . . $ $anonymous_type_643ef407c229d02_12#fps.; // frames per second * 65536 * 256, truncated
346
347 // multires is a hint that, if set, indicates that the system has fairly programmable video modes(particularly, the ability
348 // to display multiple horizontal resolutions, such as the PCE, PC-FX, or Genesis). In practice, it will cause the driver
349 // code to set the linear interpolation on by default.
350 //
351 // lcm_width and lcm_height are the least common multiples of all possible
352 // resolutions in the frame buffer as specified by DisplayRect/LineWidths(Ex for PCE: widths of 256, 341.333333, 512,
353 // lcm = 1024)
354 //
355 // nominal_width and nominal_height specify the resolution that Mednafen should display
356 // the framebuffer image in at 1x scaling, scaled from the dimensions of DisplayRect, and optionally the LineWidths array
357 // passed through espec to the Emulate() function.
358 //
359 bool multirescxx . . $ $anonymous_type_643ef407c229d02_12#multires.;
360
361 int lcm_widthcxx . . $ $anonymous_type_643ef407c229d02_12#lcm_width.;
362 int lcm_heightcxx . . $ $anonymous_type_643ef407c229d02_12#lcm_height.;
363
364 void *dummy_separatorcxx . . $ $anonymous_type_643ef407c229d02_12#dummy_separator.; //
365
366 int nominal_widthcxx . . $ $anonymous_type_643ef407c229d02_12#nominal_width.;
367 int nominal_heightcxx . . $ $anonymous_type_643ef407c229d02_12#nominal_height.;
368
369 int fb_widthcxx . . $ $anonymous_type_643ef407c229d02_12#fb_width.; // Width of the framebuffer(not necessarily width of the image). MDFN_Surface width should be >= this.
370 int fb_heightcxx . . $ $anonymous_type_643ef407c229d02_12#fb_height.; // Height of the framebuffer passed to the Emulate() function(not necessarily height of the image)
371
372 int soundchancxx . . $ $anonymous_type_643ef407c229d02_12#soundchan.; // Number of output sound channels.
373
374
375 int rotatedcxx . . $ $anonymous_type_643ef407c229d02_12#rotated.;
376
377 uint8cxx . . $ uint8# *namecxx . . $ $anonymous_type_643ef407c229d02_12#name.; /* Game name, UTF8 encoding */
378 int soundratecxx . . $ $anonymous_type_643ef407c229d02_12#soundrate.; /* For Ogg Vorbis expansion sound wacky support. 0 for default. */
379
380 VideoSystemscxx . . $ VideoSystems# VideoSystemcxx . . $ $anonymous_type_643ef407c229d02_12#VideoSystem.;
381 GameMediumTypescxx . . $ GameMediumTypes# GameTypecxx . . $ $anonymous_type_643ef407c229d02_12#GameType.;
382
383 //int DiskLogicalCount; // A single double-sided disk would be 2 here.
384 //const char *DiskNames; // Null-terminated.
385
386 const char *cspecialcxx . . $ $anonymous_type_643ef407c229d02_12#cspecial.; /* Special cart expansion: DIP switches, barcode reader, etc. */
387
388 stdcxx . . $ std/::vectorcxx . . $ std/vector#<const char *>DesiredInputcxx . . $ $anonymous_type_643ef407c229d02_12#DesiredInput.; // Desired input device for the input ports, NULL for don't care
389
390 double mouse_sensitivitycxx . . $ $anonymous_type_643ef407c229d02_12#mouse_sensitivity.;
391 } MDFNGIcxx . . $ MDFNGI#;
392 #endif