Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/genplus-gx/libretro/osd.h
2 views
1
#ifndef _OSD_H
2
#define _OSD_H
3
4
#ifdef _MSC_VER
5
#include <stdio.h>
6
typedef unsigned char bool;
7
#define strncasecmp _strnicmp
8
#endif
9
10
#include <stdint.h>
11
#include <stdlib.h>
12
#include <string.h>
13
14
#define MAX_INPUTS 8
15
#define MAX_KEYS 8
16
#define MAXPATHLEN 1024
17
18
#ifndef TRUE
19
#define TRUE 1
20
#endif
21
22
#ifndef FALSE
23
#define FALSE 0
24
#endif
25
26
#ifndef M_PI
27
#define M_PI 3.1415926535897932385
28
#endif
29
30
typedef struct
31
{
32
int8 device;
33
uint8 port;
34
uint8 padtype;
35
} t_input_config;
36
37
struct
38
{
39
char version[16];
40
uint8 hq_fm;
41
uint8 filter;
42
uint8 psgBoostNoise;
43
uint8 dac_bits;
44
uint8 ym2413;
45
uint8 mono;
46
int16 psg_preamp;
47
int16 fm_preamp;
48
uint16 lp_range;
49
int16 low_freq;
50
int16 high_freq;
51
int16 lg;
52
int16 mg;
53
int16 hg;
54
uint8 system;
55
uint8 region_detect;
56
uint8 master_clock;
57
uint8 vdp_mode;
58
uint8 force_dtack;
59
uint8 addr_error;
60
uint8 bios;
61
uint8 lock_on;
62
uint8 overscan;
63
uint8 ntsc;
64
uint8 gg_extra;
65
uint8 render;
66
t_input_config input[MAX_INPUTS];
67
} config;
68
69
extern char GG_ROM[256];
70
extern char AR_ROM[256];
71
extern char SK_ROM[256];
72
extern char SK_UPMEM[256];
73
extern char GG_BIOS[256];
74
extern char CD_BIOS_EU[256];
75
extern char CD_BIOS_US[256];
76
extern char CD_BIOS_JP[256];
77
extern char MS_BIOS_US[256];
78
extern char MS_BIOS_EU[256];
79
extern char MS_BIOS_JP[256];
80
81
void osd_input_update(void);
82
int load_archive(const char *filename, unsigned char *buffer, int maxsize, char *extension);
83
void real_input_callback(void);
84
85
#endif /* _OSD_H */
86
87