aboutsummaryrefslogtreecommitdiff
path: root/overrides/pcsx_rearmed.h
blob: e68724ea879b0c8954ad9e9918b9fa6f78a8d688 (plain)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#include "overrides.h"

static const struct core_override_option pcsx_rearmed_core_option_overrides[] = {
	{
		.key = "pcsx_rearmed_frameskip_type",
		.info = "Skip frames to avoid audio crackling. Improves performance at the expense of visual smoothness. Will cause graphical glitches.",
		.default_value = "auto",
		.options = {
			[2] = {"auto_threshold", "Threshold"},
			[3] = {"fixed_interval", "Fixed"},
		}
	},
	{
		.key = "pcsx_rearmed_frameskip_threshold",
		.desc = "FS Threshold (%)",
		.info = "When 'Frameskip' is set to 'Threshold', sets how low the audio buffer can get before frames will be skipped.",
	},
	{
		.key = "pcsx_rearmed_frameskip",
		.desc = "FS Interval",
		.info = "Specifies the maximum number of frames that can be skipped before a new frame is rendered.",
		.default_value = "4"
	},
	{
		.key = "pcsx_rearmed_memcard2",
		.desc = "2nd Memory Card",
	},
	{
		.key = "pcsx_rearmed_dithering",
		.desc = "Dithering",
		.info = "If disabled, turns off the dithering pattern the PSX applies to combat color banding.",
	},
	{
		.key = "pcsx_rearmed_show_gpu_peops_settings",
		.desc = "P.E.Op.S. Settings",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_odd_even_bit",
		.desc = "Odd/Even Hack",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_expand_screen_width",
		.desc = "Exp. Screen Width",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_ignore_brightness",
		.desc = "Ignore Brightness",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_disable_coord_check",
		.desc = "Coordinate Check",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_lazy_screen_update",
		.desc = "Lazy Screen Update",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_old_frame_skip",
		.desc = "Old Frameskip",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_repeated_triangles",
		.desc = "Rep. Triangles",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_quads_with_triangles",
		.desc = "Quads w/ Triangles",
	},
	{
		.key = "pcsx_rearmed_gpu_peops_fake_busy_state",
		.desc = "Fake 'Busy' States",
	},
	{
		.key = "pcsx_rearmed_show_gpu_unai_settings",
		.desc = "GPU UNAI Settings",
		.info = "Shows or hides advanced gpu settings. Menu must be toggled for this setting to take effect."
	},
	{
		.key = "pcsx_rearmed_gpu_unai_blending",
		.desc = "Blending",
	},
	{
		.key = "pcsx_rearmed_gpu_unai_lighting",
		.desc = "Lighting",
	},
	{
		.key = "pcsx_rearmed_gpu_unai_fast_lighting",
		.desc = "Fast Lighting",
	},
	{
		.key = "pcsx_rearmed_gpu_unai_ilace_force",
		.desc = "Forced Interlace",
	},
	{
		.key = "pcsx_rearmed_gpu_unai_pixel_skip",
		.desc = "Pixel Skip",
	},
	{
		.key = "pcsx_rearmed_gpu_unai_scale_hires",
		.desc = "Hi-Res Scaling",
		.default_value = "enabled"
	},
	{
		.key = "pcsx_rearmed_gpu_thread_rendering",
		.info = "Runs GPU commands in a thread. Sync waits for drawing to finish before vsync. Async will not wait unless there's another frame behind it."
	},
	{
		.key = "pcsx_rearmed_pe2_fix",
		.desc = "PE 2/VH 1/2 Fix",
		.info = "Fixes Parasite Eve 2 / Vandal Hearts 1 / 2."
	},
	{
		.key = "pcsx_rearmed_inuyasha_fix",
		.desc = "InuYasha Battle Fix",
	},
	{
		.key = "pcsx_rearmed_async_cd",
		.desc = "CD Access (Restart)",
		.info = "Method used to read data from disk. 'Asynchronous' can reduce stuttering on devices with slow storage. 'Precache' loads disk image into memory (CHD only)."
	},
	{
		.key = "pcsx_rearmed_spuirq",
		.desc = "SPU IRQ Always",
	},
	{
		.key = "pcsx_rearmed_nosmccheck",
		.desc = "Disable SMC Checks",
	},
	{
		.key = "pcsx_rearmed_gteregsunneeded",
		.desc = "Unneeded GTE Regs",
	},
	{
		.key = "pcsx_rearmed_nogteflags",
		.desc = "Disable GTE Flags",
	},
	{
		.key = "pcsx_rearmed_show_other_input_settings",
		.blocked = true
	},
	{
		.key = "pcsx_rearmed_input_sensitivity",
		.blocked = true
	},
	{
		.key = "pcsx_rearmed_multitap",
		.blocked = true
	},
	{
		.key = "pcsx_rearmed_vibration",
		.blocked = true
	},
	{
		.key = "pcsx_rearmed_display_internal_fps",
		.blocked = true
	},
	{
		.key = "pcsx_rearmed_icache_emulation",
		.blocked = true
	},
	{ NULL }
};

me_bind_action pcsx_rearmed_ctrl_actions[] =
{
	{ "UP       ",  1 << RETRO_DEVICE_ID_JOYPAD_UP},
	{ "DOWN     ",  1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
	{ "LEFT     ",  1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
	{ "RIGHT    ",  1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
	{ "CIRCLE   ",  1 << RETRO_DEVICE_ID_JOYPAD_A },
	{ "CROSS    ",  1 << RETRO_DEVICE_ID_JOYPAD_B },
	{ "TRIANGLE ",  1 << RETRO_DEVICE_ID_JOYPAD_X },
	{ "SQUARE   ",  1 << RETRO_DEVICE_ID_JOYPAD_Y },
	{ "START    ",  1 << RETRO_DEVICE_ID_JOYPAD_START },
	{ "SELECT   ",  1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
	{ "L1 BUTTON",  1 << RETRO_DEVICE_ID_JOYPAD_L },
	{ "R1 BUTTON",  1 << RETRO_DEVICE_ID_JOYPAD_R },
	{ "L2 BUTTON",  1 << RETRO_DEVICE_ID_JOYPAD_L2 },
	{ "R2 BUTTON",  1 << RETRO_DEVICE_ID_JOYPAD_R2 },
	{ NULL,       0 }
};

const struct core_override_fast_forward pcsx_rearmed_fast_forward = {
	.type_key = "pcsx_rearmed_frameskip_type",
	.interval_key = "pcsx_rearmed_frameskip_interval"
};

const struct core_override_startup_msg pcsx_rearmed_startup_msg = {
	.msg = "Loading...",
	.msec = 3000,
};

#define pcsx_rearmed_overrides {                               \
	.core_name = "pcsx_rearmed",                           \
	.fast_forward = &pcsx_rearmed_fast_forward,            \
	.startup_msg = &pcsx_rearmed_startup_msg,              \
	.actions = pcsx_rearmed_ctrl_actions,                  \
	.action_size = array_size(pcsx_rearmed_ctrl_actions),  \
	.options = pcsx_rearmed_core_option_overrides,         \
}