File: config.h

package info (click to toggle)
nestopia 1.49-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,424 kB
  • sloc: cpp: 86,935; xml: 26,956; makefile: 1,515; ansic: 772; sh: 19
file content (74 lines) | stat: -rw-r--r-- 1,622 bytes parent folder | download
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
68
69
70
71
72
73
74
#ifndef _CONFIG_H_
#define _CONFIG_H_

typedef struct {
	
	// Video
	int video_filter;
	int video_scale_factor;
	int video_palette_mode;
	int video_decoder;
	int video_brightness;
	int video_saturation;
	int video_contrast;
	int video_hue;
	int video_ntsc_mode;
	int video_ntsc_sharpness;
	int video_ntsc_resolution;
	int video_ntsc_bleed;
	int video_ntsc_artifacts;
	int video_ntsc_fringing;
	int video_xbr_corner_rounding;
	bool video_linear_filter;
	bool video_tv_aspect;
	bool video_unmask_overscan;
	bool video_fullscreen;
	bool video_stretch_aspect;
	bool video_unlimited_sprites;
	bool video_xbr_pixel_blending;
	
	// Audio
	int audio_api;
	bool audio_stereo;
	int audio_sample_rate;
	int audio_volume;
	int audio_vol_sq1;
	int audio_vol_sq2;
	int audio_vol_tri;
	int audio_vol_noise;
	int audio_vol_dpcm;
	int audio_vol_fds;
	int audio_vol_mmc5;
	int audio_vol_vrc6;
	int audio_vol_vrc7;
	int audio_vol_n163;
	int audio_vol_s5b;
	
	// Timing
	int timing_speed;
	int timing_ffspeed;
	int timing_turbopulse;
	bool timing_vsync;
	bool timing_limiter;
	
	// Misc
	//int misc_video_region;
	int misc_default_system;
	bool misc_soft_patching;
	//bool misc_suppress_screensaver;
	bool misc_genie_distortion;
	bool misc_disable_cursor;
	bool misc_disable_cursor_special;
	bool misc_config_pause;
	char* misc_last_folder;
	int misc_power_state;
	bool misc_overclock;
} settings_t;

void config_file_read(const char *nstdir);
void config_file_write(const char *nstdir);
void config_set_default();
static int config_match(void* user, const char* section, const char* name, const char* value);

extern settings_t conf;
#endif