frontend: update libpicofe, fix missed callbacks
[pcsx_rearmed.git] / frontend / libretro_core_options.h
CommitLineData
7a8d521f 1#ifndef LIBRETRO_CORE_OPTIONS_H__
2#define LIBRETRO_CORE_OPTIONS_H__
3
4#include <stdlib.h>
5#include <string.h>
6
7#include <libretro.h>
8#include <retro_inline.h>
9
10#ifndef HAVE_NO_LANGEXTRA
11#include "libretro_core_options_intl.h"
12#endif
13
14/*
15 ********************************
16 * VERSION: 2.0
17 ********************************
18 *
19 * - 2.0: Add support for core options v2 interface
20 * - 1.3: Move translations to libretro_core_options_intl.h
21 * - libretro_core_options_intl.h includes BOM and utf-8
22 * fix for MSVC 2010-2013
23 * - Added HAVE_NO_LANGEXTRA flag to disable translations
24 * on platforms/compilers without BOM support
25 * - 1.2: Use core options v1 interface when
26 * RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION is >= 1
27 * (previously required RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION == 1)
28 * - 1.1: Support generation of core options v0 retro_core_option_value
29 * arrays containing options with a single value
30 * - 1.0: First commit
31*/
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37/*
38 ********************************
39 * Core Option Definitions
40 ********************************
41*/
42
43/* RETRO_LANGUAGE_ENGLISH */
44
45/* Default language:
46 * - All other languages must include the same keys and values
47 * - Will be used as a fallback in the event that frontend language
48 * is not available
49 * - Will be used as a fallback for any missing entries in
50 * frontend language definition
51 */
52
53struct retro_core_option_v2_category option_cats_us[] = {
54 {
55 "system",
56 "System",
57 "Configure base hardware parameters: region, BIOS selection, memory cards, etc."
58 },
59 {
60 "video",
61 "Video",
62 "Configure base display parameters."
63 },
64#ifdef GPU_NEON
65 {
66 "gpu_neon",
67 "GPU Plugin",
68 "Configure low-level settings of the NEON GPU plugin."
69 },
70#endif
71#ifdef GPU_PEOPS
72 {
73 "gpu_peops",
74 "GPU Plugin (Advanced)",
75 "Configure low-level settings of the P.E.Op.S. GPU plugin."
76 },
77#endif
78#ifdef GPU_UNAI
79 {
80 "gpu_unai",
81 "GPU Plugin (Advanced)",
82 "Configure low-level settings of the UNAI GPU plugin."
83 },
84#endif
85 {
86 "audio",
87 "Audio",
88 "Configure sound emulation: reverb, interpolation, CD audio decoding."
89 },
90 {
91 "input",
92 "Input",
93 "Configure input devices: analog response, haptic feedback, Multitaps, light guns, etc."
94 },
95 {
96 "compat_hack",
97 "Compatibility Fixes",
98 "Configure settings/workarounds required for correct operation of specific games."
99 },
7a8d521f 100 {
101 "speed_hack",
102 "Speed Hacks (Advanced)",
103 "Configure hacks that may improve performance at the expense of decreased accuracy/stability."
104 },
7a8d521f 105 { NULL, NULL, NULL },
106};
107
108struct retro_core_option_v2_definition option_defs_us[] = {
109 {
110 "pcsx_rearmed_region",
111 "Region",
112 NULL,
113 "Specify which region the system is from. 'NTSC' is 60 Hz while 'PAL' is 50 Hz. 'Auto' will detect the region of the currently loaded content. Games may run faster or slower than normal if the incorrect region is selected.",
114 NULL,
115 "system",
116 {
117 { "auto", "Auto" },
118 { "NTSC", NULL },
119 { "PAL", NULL },
120 { NULL, NULL },
121 },
122 "auto",
123 },
124 {
125 "pcsx_rearmed_bios",
126 "BIOS Selection",
127 NULL,
128 "Specify which BIOS to use. 'Auto' will attempt to load a real bios file from the frontend 'system' directory, falling back to high level emulation if unavailable. 'HLE' forces high level BIOS emulation. It is recommended to use an official bios file for better compatibility.",
129 NULL,
130 "system",
131 {
132 { "auto", "Auto" },
133 { "HLE", NULL },
134 { NULL, NULL },
135 },
136 "auto",
137 },
138 {
139 "pcsx_rearmed_show_bios_bootlogo",
140 "Show BIOS Boot Logo",
141 NULL,
142 "When using an official BIOS file, specify whether to show the PlayStation logo upon starting or resetting content. Warning: Enabling the boot logo may reduce game compatibility.",
143 NULL,
144 "system",
145 {
146 { "disabled", NULL },
147 { "enabled", NULL },
148 { NULL, NULL },
149 },
150 "disabled",
151 },
152 {
153 "pcsx_rearmed_memcard2",
76c5f5c4 154 "Second Memory Card (Shared)",
7a8d521f 155 NULL,
156 "Emulate a second memory card in slot 2. This will be shared by all games.",
157 NULL,
158 "system",
159 {
160 { "disabled", NULL },
161 { "enabled", NULL },
162 { NULL, NULL },
163 },
164 "disabled",
165 },
08d9d257 166#if defined(HAVE_CDROM) || defined(USE_ASYNC_CDROM)
e0216409 167#define V(x) { #x, NULL }
168 {
08d9d257 169 "pcsx_rearmed_cd_readahead",
170 "CD read-ahead",
e0216409 171 NULL,
08d9d257 172 "Reads the specified amount of sectors ahead of time to try to avoid later stalls. "
173#ifdef HAVE_CDROM
174 "Affects both physical CD-ROM and CD images. "
175#endif
176#if !defined(_3DS) && !defined(VITA)
177 "333000 will try to read the complete disk (requires an additional 750MB of RAM)."
178#endif
179 ,
e0216409 180 NULL,
181 "system",
182 {
183 V(0), V(1), V(2), V(3), V(4), V(5), V(6), V(7),
184 V(8), V(9), V(10), V(11), V(12), V(13), V(14), V(15),
08d9d257 185 V(16), V(32), V(64), V(128), V(256), V(512), V(1024),
186#if !defined(_3DS) && !defined(VITA)
187 V(333000),
188#endif
e0216409 189 { NULL, NULL},
190 },
191 "12",
192 },
193#undef V
194#endif
7a8d521f 195#ifndef DRC_DISABLE
196 {
197 "pcsx_rearmed_drc",
198 "Dynamic Recompiler",
199 NULL,
200 "Dynamically recompile PSX CPU instructions to native instructions. Much faster than using an interpreter, but may be less accurate on some platforms.",
201 NULL,
202 "system",
203 {
204 { "disabled", NULL },
205 { "enabled", NULL },
206 { NULL, NULL },
207 },
208 "enabled",
209 },
0b1633d7 210#if !defined(LIGHTREC) && defined(NDRC_THREAD)
211 {
212 "pcsx_rearmed_drc_thread",
213 "DynaRec threading",
214 NULL,
215 "Run the dynarec on another thread.",
216 NULL,
217 "system",
218 {
219 { "auto", "Auto" },
220 { "disabled", NULL },
221 { "enabled", NULL },
222 { NULL, NULL },
223 },
224 "auto",
225 },
7a8d521f 226#endif
0b1633d7 227#endif // DRC_DISABLE
7a8d521f 228 {
229 "pcsx_rearmed_psxclock",
a3c46b7f 230 "PSX CPU Clock Speed (%)",
7a8d521f 231 NULL,
709d4988 232 "Overclock or under-clock the PSX CPU. Should be much less than 100 (something like 57) due to some real hardware slowdowns not being emulated. Usually should be left at 'Auto', else glitches or hangs are likely.",
7a8d521f 233 NULL,
234 "system",
235 {
397c3db3 236 { "auto", "Auto" },
7a8d521f 237 { "30", NULL },
238 { "31", NULL },
239 { "32", NULL },
240 { "33", NULL },
241 { "34", NULL },
242 { "35", NULL },
243 { "36", NULL },
244 { "37", NULL },
245 { "38", NULL },
246 { "39", NULL },
247 { "40", NULL },
248 { "41", NULL },
249 { "42", NULL },
250 { "43", NULL },
251 { "44", NULL },
252 { "45", NULL },
253 { "46", NULL },
254 { "47", NULL },
255 { "48", NULL },
256 { "49", NULL },
257 { "50", NULL },
258 { "51", NULL },
259 { "52", NULL },
260 { "53", NULL },
261 { "54", NULL },
262 { "55", NULL },
263 { "56", NULL },
264 { "57", NULL },
265 { "58", NULL },
266 { "59", NULL },
267 { "60", NULL },
268 { "61", NULL },
269 { "62", NULL },
270 { "63", NULL },
271 { "64", NULL },
272 { "65", NULL },
273 { "66", NULL },
274 { "67", NULL },
275 { "68", NULL },
276 { "69", NULL },
277 { "70", NULL },
278 { "71", NULL },
279 { "72", NULL },
280 { "73", NULL },
281 { "74", NULL },
282 { "75", NULL },
283 { "76", NULL },
284 { "77", NULL },
285 { "78", NULL },
286 { "79", NULL },
287 { "80", NULL },
288 { "81", NULL },
289 { "82", NULL },
290 { "83", NULL },
291 { "84", NULL },
292 { "85", NULL },
293 { "86", NULL },
294 { "87", NULL },
295 { "88", NULL },
296 { "89", NULL },
297 { "90", NULL },
298 { "91", NULL },
299 { "92", NULL },
300 { "93", NULL },
301 { "94", NULL },
302 { "95", NULL },
303 { "96", NULL },
304 { "97", NULL },
305 { "98", NULL },
306 { "99", NULL },
307 { "100", NULL },
308 { NULL, NULL },
309 },
397c3db3 310 "auto",
7a8d521f 311 },
312 {
313 "pcsx_rearmed_dithering",
314 "Dithering Pattern",
315 NULL,
ed8077c5 316 "Enable emulation of the dithering technique used by the PSX to smooth out color banding artifacts. \"Force\" enables it even if the game turns it off. Increases performance requirements.",
7a8d521f 317 NULL,
318 "video",
319 {
320 { "disabled", NULL },
321 { "enabled", NULL },
ed8077c5 322 { "force", "Force" },
7a8d521f 323 { NULL, NULL },
324 },
5498b8ad 325#if defined(_3DS)
7a8d521f 326 "disabled",
327#else
328 "enabled",
329#endif
330 },
7a8d521f 331#ifdef THREAD_RENDERING
332 {
333 "pcsx_rearmed_gpu_thread_rendering",
334 "Threaded Rendering",
335 NULL,
336 "When enabled, runs GPU commands in a secondary thread. 'Synchronous' improves performance while maintaining proper frame pacing. 'Asynchronous' improves performance even further, but may cause dropped frames and increased latency. Produces best results with games that run natively at less than 60 frames per second.",
337 NULL,
338 "video",
339 {
340 { "disabled", NULL },
341 { "sync", "Synchronous" },
342 { "async", "Asynchronous" },
343 { NULL, NULL},
344 },
345 "disabled",
346 },
347#endif
348 {
349 "pcsx_rearmed_frameskip_type",
350 "Frameskip",
351 NULL,
352 "Skip frames to avoid audio buffer under-run (crackling). Improves performance at the expense of visual smoothness. 'Auto' skips frames when advised by the frontend. 'Auto (Threshold)' utilises the 'Frameskip Threshold (%)' setting. 'Fixed Interval' utilises the 'Frameskip Interval' setting.",
353 NULL,
354 "video",
355 {
356 { "disabled", NULL },
357 { "auto", "Auto" },
358 { "auto_threshold", "Auto (Threshold)" },
359 { "fixed_interval", "Fixed Interval" },
360 { NULL, NULL },
361 },
362 "disabled"
363 },
364 {
365 "pcsx_rearmed_frameskip_threshold",
366 "Frameskip Threshold (%)",
367 NULL,
368 "When 'Frameskip' is set to 'Auto (Threshold)', specifies the audio buffer occupancy threshold (percentage) below which frames will be skipped. Higher values reduce the risk of crackling by causing frames to be dropped more frequently.",
369 NULL,
370 "video",
371 {
372 { "15", NULL },
373 { "18", NULL },
374 { "21", NULL },
375 { "24", NULL },
376 { "27", NULL },
377 { "30", NULL },
378 { "33", NULL },
379 { "36", NULL },
380 { "39", NULL },
381 { "42", NULL },
382 { "45", NULL },
383 { "48", NULL },
384 { "51", NULL },
385 { "54", NULL },
386 { "57", NULL },
387 { "60", NULL },
388 { NULL, NULL },
389 },
390 "33"
391 },
392 {
393 "pcsx_rearmed_frameskip_interval",
394 "Frameskip Interval",
395 NULL,
396 "Specify the maximum number of frames that can be skipped before a new frame is rendered.",
397 NULL,
398 "video",
399 {
400 { "1", NULL },
401 { "2", NULL },
402 { "3", NULL },
403 { "4", NULL },
404 { "5", NULL },
405 { "6", NULL },
406 { "7", NULL },
407 { "8", NULL },
408 { "9", NULL },
409 { "10", NULL },
410 { NULL, NULL },
411 },
412 "3"
413 },
414 {
8a1f23ef 415 "pcsx_rearmed_display_fps_v2",
7a8d521f 416 "Display Internal FPS",
417 NULL,
418 "Show the internal frame rate at which the emulated PlayStation system is rendering content. Note: Requires on-screen notifications to be enabled in the libretro frontend.",
419 NULL,
420 "video",
421 {
422 { "disabled", NULL },
423 { "enabled", NULL },
8a1f23ef 424 { "extra", NULL },
7a8d521f 425 { NULL, NULL },
426 },
427 "disabled",
428 },
4c8f1c25 429 {
430 "pcsx_rearmed_fractional_framerate",
431 "Use fractional frame rate",
432 NULL,
433 "Instead of the exact 50 or 60 (maximum) fps for PAL/NTSC the real console runs closer to something like 49.75 and 59.81fps (varies slightly between hw versions). PCSX-ReARMed uses the former \"round\" framerates to better match modern displays, however that may cause audio/video desync in games like DDR and Spyro 2 (intro). With this option you can try to use fractional framerates.",
434 NULL,
435 "video",
436 {
437 { "auto", "Auto" },
438 { "disabled", NULL },
439 { "enabled", NULL },
440 { NULL, NULL },
441 },
442 "auto",
443 },
4d99e39b 444 {
445 "pcsx_rearmed_rgb32_output",
446 "RGB32 output",
447 NULL,
448 "Improves color depth for true color modes (most FMVs and occasional title screens). Causes higher CPU usage due to double memory bandwidth requirement, even in 15bpp modes. Takes effect on game reload only (libretro limitation).",
449 NULL,
450 "video",
451 {
452 { "disabled", NULL },
453 { "enabled", NULL },
454 { NULL, NULL },
455 },
456 "disabled",
457 },
8c84ba5f 458 {
459 "pcsx_rearmed_gpu_slow_llists",
460 "(GPU) Slow linked list processing",
461 NULL,
462 "Slower but more accurate GPU linked list processing. Needed by only a few games like Vampire Hunter D. Should be autodetected in most cases.",
463 NULL,
464 "video",
465 {
4c8f1c25 466 { "auto", "Auto" },
8c84ba5f 467 { "disabled", NULL },
468 { "enabled", NULL },
469 { NULL, NULL },
470 },
471 "auto",
472 },
f9ffa42c 473 {
474 "pcsx_rearmed_show_overscan",
76c5f5c4 475 "(GPU) Horizontal overscan",
f9ffa42c 476 NULL,
477 "The PSX can display graphics way into the horizontal borders, even if most screens would crop it. This option tries to display all such graphics. Note that this may result in unusual resolutions that your device might not handle well. The 'Hack' option is intended for the widescreen hacks.",
478 NULL,
479 "video",
480 {
481 { "disabled", NULL },
482 { "auto", "Auto" },
483 { "hack", "Hack" },
484 { NULL, NULL },
485 },
486 "disabled",
487 },
308c6e67 488 {
489 "pcsx_rearmed_screen_centering",
490 "(GPU) Screen centering",
491 NULL,
44e76f8a 492 "The PSX has a feature allowing it to shift the image position on screen. Some (mostly PAL) games used this feature in a strange way making the image miscentered and causing uneven borders to appear. With 'Auto' the emulator tries to correct this miscentering automatically. 'Game-controlled' uses the settings supplied by the game. 'Manual' allows to override those values with the settings below.",
308c6e67 493 NULL,
494 "video",
495 {
496 { "auto", "Auto" },
497 { "game", "Game-controlled" },
44e76f8a 498 { "borderless", "Borderless" },
308c6e67 499 { "manual", "Manual" },
500 { NULL, NULL },
501 },
502 "auto",
503 },
504#define V(x) { #x, NULL }
505 {
506 "pcsx_rearmed_screen_centering_x",
76c5f5c4 507 "(GPU) Manual position X",
308c6e67 508 NULL,
509 "X offset of the frame buffer. Only effective when 'Screen centering' is set to 'Manual'.",
510 NULL,
511 "video",
512 {
513 V(-16), V(-14), V(-12), V(-10), V(-8), V(-6), V(-4), V(-2), V(0), V(2), V(4), V(6), V(8), V(10), V(12), V(14), V(16),
514 { NULL, NULL },
515 },
516 "0",
517 },
518 {
519 "pcsx_rearmed_screen_centering_y",
76c5f5c4 520 "(GPU) Manual position Y",
308c6e67 521 NULL,
522 "Y offset of the frame buffer. Only effective when 'Screen centering' is set to 'Manual'.",
523 NULL,
524 "video",
525 {
526 V(-16), V(-15), V(-14), V(-13), V(-12), V(-11), V(-10), V(-9), V(-8), V(-7), V(-6), V(-5), V(-4), V(-3), V(-2), V(-1),
527 V(0), V(1), V(2), V(3), V(4), V(5), V(6), V(7), V(8), V(9), V(10), V(11), V(12), V(13), V(14), V(15), V(16),
528 { NULL, NULL },
529 },
530 "0",
531 },
238696ae 532 {
533 "pcsx_rearmed_screen_centering_h_adj",
534 "(GPU) Manual height adjustment",
535 NULL,
536 "Height adjustment. Only effective when 'Screen centering' is set to 'Manual'.",
537 NULL,
538 "video",
539 {
540 V(-64), V(-48), V(-40), V(-32), V(-24), V(-16), V(-8), V(-7), V(-6), V(-5), V(-4), V(-3), V(-2), V(-1), V(0),
541 { NULL, NULL },
542 },
543 "0",
544 },
308c6e67 545#undef V
7a8d521f 546#ifdef GPU_NEON
547 {
fdcde643 548 "pcsx_rearmed_neon_interlace_enable_v2",
7a8d521f 549 "(GPU) Show Interlaced Video",
550 "Show Interlaced Video",
fdcde643 551 "When enabled, games that run in high resolution video modes (480i, 512i) will produced interlaced video output. While this displays correctly on CRT televisions, it will produce artifacts on modern displays. When disabled, all video is output in progressive format. Note: there are games that will glitch is this is off.",
7a8d521f 552 NULL,
553 "gpu_neon",
554 {
fdcde643 555 { "auto", NULL },
7a8d521f 556 { "disabled", NULL },
557 { "enabled", NULL },
558 { NULL, NULL },
559 },
fdcde643 560 "auto",
7a8d521f 561 },
562 {
563 "pcsx_rearmed_neon_enhancement_enable",
6777e331 564 "(GPU) Enhanced Resolution",
565 "Enhanced Resolution",
7a8d521f 566 "Render games that do not already run in high resolution video modes (480i, 512i) at twice the native internal resolution. Improves the fidelity of 3D models at the expense of increased performance requirements. 2D elements are generally unaffected by this setting.",
567 NULL,
568 "gpu_neon",
569 {
570 { "disabled", NULL },
571 { "enabled", NULL },
572 { NULL, NULL },
573 },
574 "disabled",
575 },
576 {
577 "pcsx_rearmed_neon_enhancement_no_main",
578 "(GPU) Enhanced Resolution Speed Hack",
76c5f5c4 579 "Enh. Res. Speed Hack",
47bdde5d 580 "('Enhanced Resolution' Hack) Improves performance but reduces compatibility and may cause rendering errors.",
7a8d521f 581 NULL,
582 "gpu_neon",
583 {
584 { "disabled", NULL },
585 { "enabled", NULL },
586 { NULL, NULL },
587 },
588 "disabled",
589 },
6ab6ab97 590 {
f0ca3e2f 591 "pcsx_rearmed_neon_enhancement_tex_adj_v2",
6ab6ab97 592 "(GPU) Enhanced Resolution Texture Adjustment",
76c5f5c4 593 "Enh. Res. Texture Fixup",
f0ca3e2f 594 "('Enhanced Resolution' Hack) Solves some texturing issues in some games in Enhanced Resolution mode. May cause a small performance hit.",
6ab6ab97 595 NULL,
596 "gpu_neon",
597 {
598 { "disabled", NULL },
599 { "enabled", NULL },
600 { NULL, NULL },
601 },
f0ca3e2f 602 "enabled",
6ab6ab97 603 },
7a8d521f 604#endif /* GPU_NEON */
605#ifdef GPU_PEOPS
606 {
607 "pcsx_rearmed_show_gpu_peops_settings",
608 "Show Advanced P.E.Op.S. GPU Settings",
609 NULL,
610 "Show low-level configuration options for the P.E.Op.S. GPU plugin. Quick Menu may need to be toggled for this setting to take effect.",
611 NULL,
612 NULL,
613 {
614 { "disabled", NULL },
615 { "enabled", NULL },
616 { NULL, NULL },
617 },
618 "disabled",
619 },
620 {
621 "pcsx_rearmed_gpu_peops_odd_even_bit",
622 "(GPU) Odd/Even Bit Hack",
623 "Odd/Even Bit Hack",
624 "A hack fix used to correct lock-ups that may occur in games such as Chrono Cross. Disable unless required.",
625 NULL,
626 "gpu_peops",
627 {
628 { "disabled", NULL },
629 { "enabled", NULL },
630 { NULL, NULL },
631 },
632 "disabled",
633 },
634 {
635 "pcsx_rearmed_gpu_peops_expand_screen_width",
636 "(GPU) Expand Screen Width",
637 "Expand Screen Width",
638 "Intended for use only with Capcom 2D fighting games. Enlarges the display area at the right side of the screen to show all background elements without cut-off. May cause rendering errors.",
639 NULL,
640 "gpu_peops",
641 {
642 { "disabled", NULL },
643 { "enabled", NULL },
644 { NULL, NULL },
645 },
646 "disabled",
647 },
648 {
649 "pcsx_rearmed_gpu_peops_ignore_brightness",
650 "(GPU) Ignore Brightness Color",
651 "Ignore Brightness Color",
652 "A hack fix used to repair black screens in Lunar Silver Star Story Complete when entering a house or a menu. Disable unless required.",
653 NULL,
654 "gpu_peops",
655 {
656 { "disabled", NULL },
657 { "enabled", NULL },
658 { NULL, NULL },
659 },
660 "disabled",
661 },
662 {
663 "pcsx_rearmed_gpu_peops_disable_coord_check",
664 "(GPU) Disable Coordinate Check",
665 "Disable Coordinate Check",
666 "Legacy compatibility mode. May improve games that fail to run correctly on newer GPU hardware. Disable unless required.",
667 NULL,
668 "gpu_peops",
669 {
670 { "disabled", NULL },
671 { "enabled", NULL },
672 { NULL, NULL },
673 },
674 "disabled",
675 },
676 {
677 "pcsx_rearmed_gpu_peops_lazy_screen_update",
678 "(GPU) Lazy Screen Update",
679 "Lazy Screen Update",
680 "A partial fix to prevent text box flickering in Dragon Warrior VII. May also improve Pandemonium 2. Disable unless required.",
681 NULL,
682 "gpu_peops",
683 {
684 { "disabled", NULL },
685 { "enabled", NULL },
686 { NULL, NULL },
687 },
688 "disabled",
689 },
690 {
691 "pcsx_rearmed_gpu_peops_repeated_triangles",
692 "(GPU) Repeat Flat Tex Triangles",
693 "Repeat Flat Tex Triangles",
694 "A hack fix used to correct rendering errors in Star Wars: Dark Forces. Disable unless required.",
695 NULL,
696 "gpu_peops",
697 {
698 { "disabled", NULL },
699 { "enabled", NULL },
700 { NULL, NULL },
701 },
702 "disabled",
703 },
704 {
705 "pcsx_rearmed_gpu_peops_quads_with_triangles",
706 "(GPU) Draw Tex-Quads as Triangles",
707 "Draw Tex-Quads as Triangles",
708 "Corrects graphical distortions that may occur when games utilize Gouraud Shading, at the expense of reduced texture quality. Disable unless required.",
709 NULL,
710 "gpu_peops",
711 {
712 { "disabled", NULL },
713 { "enabled", NULL },
714 { NULL, NULL },
715 },
716 "disabled",
717 },
718 {
719 "pcsx_rearmed_gpu_peops_fake_busy_state",
720 "(GPU) Fake 'GPU Busy' States",
721 "Fake 'GPU Busy' States",
722 "Emulate the 'GPU is busy' (drawing primitives) status flag of the original hardware instead of assuming the GPU is always ready for commands. May improve compatibility at the expense of reduced performance. Disable unless required.",
723 NULL,
724 "gpu_peops",
725 {
726 { "disabled", NULL },
727 { "enabled", NULL },
728 { NULL, NULL },
729 },
730 "disabled",
731 },
732#endif /* GPU_PEOPS */
733#ifdef GPU_UNAI
734 {
735 "pcsx_rearmed_show_gpu_unai_settings",
736 "Show Advanced UNAI GPU Settings",
737 NULL,
738 "Show low-level configuration options for the UNAI GPU plugin. Quick Menu may need to be toggled for this setting to take effect.",
739 NULL,
740 NULL,
741 {
742 { "disabled", NULL },
743 { "enabled", NULL },
744 { NULL, NULL},
745 },
746 "disabled",
747 },
5ddc3a7a 748#ifndef GPU_UNAI_NO_OLD
749 {
750 "pcsx_rearmed_gpu_unai_old_renderer",
751 "(GPU) Old renderer",
752 "Old renderer",
753 "This enables faster, but less accurate code.",
754 NULL,
755 "gpu_unai",
756 {
757 { "disabled", NULL },
758 { "enabled", NULL },
759 { NULL, NULL},
760 },
761 "disabled",
762 },
763#endif
7a8d521f 764 {
765 "pcsx_rearmed_gpu_unai_blending",
766 "(GPU) Texture Blending",
767 "Texture Blending",
768 "Enable alpha-based (and additive) texture blending. Required for various rendering effects, including transparency (e.g. water, shadows). Can be disabled to improve performance at the expense of severe display errors/inaccuracies.",
769 NULL,
770 "gpu_unai",
771 {
772 { "disabled", NULL },
773 { "enabled", NULL },
774 { NULL, NULL},
775 },
776 "enabled",
777 },
b453e661
A
778 {
779 "pcsx_rearmed_gpu_unai_skipline",
780 "(GPU) Skip every 2nd line",
781 "Skip every 2nd line",
782 "Skips every second scanline. Can be enabled to improve performance at the expense of display inaccuracies (artifacts etc.).",
783 NULL,
784 "gpu_unai",
785 {
786 { "disabled", NULL },
787 { "enabled", NULL },
788 { NULL, NULL},
789 },
790 "disabled",
791 },
7a8d521f 792 {
793 "pcsx_rearmed_gpu_unai_lighting",
794 "(GPU) Lighting Effects",
795 "Lighting Effects",
796 "Enable simulated lighting effects (via vertex coloring combined with texture mapping). Required by almost all 3D games. Can be disabled to improve performance at the expense of severe display errors/inaccuracies (missing shadows, flat textures, etc.).",
797 NULL,
798 "gpu_unai",
799 {
800 { "disabled", NULL },
801 { "enabled", NULL },
802 { NULL, NULL},
803 },
804 "enabled",
805 },
806 {
807 "pcsx_rearmed_gpu_unai_fast_lighting",
808 "(GPU) Fast Lighting",
809 "Fast Lighting",
810 "Improves performance when 'Lighting Effects' are enabled, but may cause moderate/severe rendering errors.",
811 NULL,
812 "gpu_unai",
813 {
814 { "disabled", NULL },
815 { "enabled", NULL },
816 { NULL, NULL},
817 },
818 "disabled",
819 },
820 {
821 "pcsx_rearmed_gpu_unai_scale_hires",
822 "(GPU) Hi-Res Downscaling",
823 "Hi-Res Downscaling",
824 "When enabled, games that run in high resolution video modes (480i, 512i) will be downscaled to 320x240. Can improve performance, and is recommended on devices with native 240p display resolutions.",
825 NULL,
826 "gpu_unai",
827 {
828 { "disabled", NULL },
829 { "enabled", NULL },
830 { NULL, NULL},
831 },
832#ifdef _MIYOO
833 "enabled",
834#else
835 "disabled",
836#endif
837 },
838#endif /* GPU_UNAI */
839 {
840 "pcsx_rearmed_spu_reverb",
841 "Audio Reverb Effects",
842 "Reverb Effects",
843 "Enable emulation of the reverb feature provided by the PSX SPU. Can be disabled to improve performance at the expense of reduced audio quality/authenticity.",
844 NULL,
845 "audio",
846 {
847 { "disabled", NULL },
848 { "enabled", NULL },
849 { NULL, NULL },
850 },
851#ifdef HAVE_PRE_ARMV7
852 "disabled",
853#else
854 "enabled",
855#endif
856 },
857 {
858 "pcsx_rearmed_spu_interpolation",
859 "Sound Interpolation",
860 NULL,
861 "Enable emulation of the in-built audio interpolation provided by the PSX SPU. 'Gaussian' sounds closest to original hardware. 'Simple' improves performance but reduces quality. 'Cubic' has the highest performance requirements but produces increased clarity. Can be disabled entirely for maximum performance, at the expense of greatly reduced audio quality.",
862 NULL,
863 "audio",
864 {
865 { "simple", "Simple" },
866 { "gaussian", "Gaussian" },
867 { "cubic", "Cubic" },
868 { "off", "disabled" },
869 { NULL, NULL },
870 },
871#ifdef HAVE_PRE_ARMV7
872 "off",
873#else
874 "simple",
875#endif
876 },
877 {
878 "pcsx_rearmed_nocdaudio",
879 "CD Audio",
880 NULL,
881 "Enable playback of CD (CD-DA) audio tracks. Can be disabled to improve performance in games that include CD audio, at the expense of missing music.",
882 NULL,
883 "audio",
884 {
885 { "disabled", NULL },
886 { "enabled", NULL },
887 { NULL, NULL },
888 },
889 "enabled",
890 },
891 {
892 "pcsx_rearmed_noxadecoding",
893 "XA Decoding",
894 NULL,
895 "Enable playback of XA (eXtended Architecture ADPCM) audio tracks. Can be disabled to improve performance in games that include XA audio, at the expense of missing music.",
896 NULL,
897 "audio",
898 {
899 { "disabled", NULL },
900 { "enabled", NULL },
901 { NULL, NULL },
902 },
903 "enabled",
904 },
9165d434 905#if P_HAVE_PTHREAD
16809ab9 906 {
907 "pcsx_rearmed_spu_thread",
908 "Threaded SPU",
909 NULL,
910 "Emulates the PSX SPU on another CPU thread. May cause audio glitches in some games.",
911 NULL,
912 "audio",
913 {
914 { "disabled", NULL },
915 { "enabled", NULL },
916 { NULL, NULL },
917 },
918 "disabled",
919 },
9165d434 920#endif // P_HAVE_PTHREAD
7a8d521f 921 {
922 "pcsx_rearmed_show_input_settings",
923 "Show Input Settings",
924 NULL,
925 "Show configuration options for all input devices: analog response, Multitaps, light guns, etc. Quick Menu may need to be toggled for this setting to take effect.",
926 NULL,
927 NULL,
928 {
929 { "disabled", NULL },
930 { "enabled", NULL },
931 { NULL, NULL },
932 },
933 "disabled",
934 },
935 {
936 "pcsx_rearmed_analog_axis_modifier",
937 "Analog Axis Bounds",
938 NULL,
939 "Specify range limits for the left and right analog sticks when input device is set to 'analog' or 'dualshock'. 'Square' bounds improve input response when using controllers with highly circular ranges that are unable to fully saturate the X and Y axes at 45 degree deflections.",
940 NULL,
941 "input",
942 {
943 { "circle", "Circle" },
944 { "square", "Square" },
945 { NULL, NULL },
946 },
6a79c063 947 "square",
7a8d521f 948 },
949 {
950 "pcsx_rearmed_vibration",
951 "Rumble Effects",
952 NULL,
953 "Enable haptic feedback when using a rumble-equipped gamepad with input device set to 'dualshock'.",
954 NULL,
955 "input",
956 {
957 { "disabled", NULL },
958 { "enabled", NULL },
e5241564 959 { NULL, NULL },
960 },
961 "enabled",
962 },
963 {
a3d87cd7 964 "pcsx_rearmed_analog_combo",
965 "DualShock Analog Mode Toggle Key Combo",
e5241564 966 NULL,
a3d87cd7 967 "When the input device type is DualShock, this option allows the emulated DualShock to be toggled between DIGITAL and ANALOG mode like original hardware. You can select the button combination for this.",
e5241564 968 NULL,
969 "input",
970 {
971 { "disabled", NULL },
a3d87cd7 972 { "l1+r1+select", "L1 + R1 + Select" },
973 { "l1+r1+start", "L1 + R1 + Start" },
974 { "l1+r1+l3", "L1 + R1 + L3" },
975 { "l1+r1+r3", "L1 + R1 + R3" },
976 { "l3+r3", "L3 + R3" },
7a8d521f 977 { NULL, NULL },
978 },
a3d87cd7 979 "l1+r1+select"
7a8d521f 980 },
981 {
982 "pcsx_rearmed_multitap",
f6eb0b1c 983 "Multitap Mode",
7a8d521f 984 NULL,
f6eb0b1c 985 "Connect a virtual PSX Multitap peripheral to either controller 'Port 1' or controller 'Port 2' for 5 player simultaneous input, or to both 'Ports 1 and 2' for 8 player input. Mutlitap usage requires compatible games.",
7a8d521f 986 NULL,
987 "input",
988 {
989 { "disabled", NULL },
990 { "port 1", "Port 1" },
991 { "port 2", "Port 2" },
992 { "ports 1 and 2", "Ports 1 and 2" },
993 { NULL, NULL },
994 },
995 "disabled",
996 },
997 {
998 "pcsx_rearmed_negcon_deadzone",
999 "NegCon Twist Deadzone",
1000 NULL,
1001 "Set the deadzone of the RetroPad left analog stick when simulating the 'twist' action of emulated neGcon Controllers. Used to eliminate drift/unwanted input.",
1002 NULL,
1003 "input",
1004 {
1005 { "0", "0%" },
1006 { "3", "3%" },
1007 { "5", "5%" },
1008 { "7", "7%" },
1009 { "10", "10%" },
1010 { "13", "13%" },
1011 { "15", "15%" },
1012 { "17", "17%" },
1013 { "20", "20%" },
1014 { "23", "23%" },
1015 { "25", "25%" },
1016 { "27", "27%" },
1017 { "30", "30%" },
1018 { NULL, NULL },
1019 },
1020 "0",
1021 },
1022 {
1023 "pcsx_rearmed_negcon_response",
1024 "NegCon Twist Response",
1025 NULL,
1026 "Specify the analog response when using a RetroPad left analog stick to simulate the 'twist' action of emulated neGcon Controllers.",
1027 NULL,
1028 "input",
1029 {
1030 { "linear", "Linear" },
1031 { "quadratic", "Quadratic" },
1032 { "cubic", "Cubic" },
1033 { NULL, NULL },
1034 },
1035 "linear",
1036 },
1037 {
1038 "pcsx_rearmed_input_sensitivity",
1039 "Mouse Sensitivity",
1040 NULL,
1041 "Adjust responsiveness of emulated 'mouse' input devices.",
1042 NULL,
1043 "input",
1044 {
1045 { "0.05", NULL },
1046 { "0.10", NULL },
1047 { "0.15", NULL },
1048 { "0.20", NULL },
1049 { "0.25", NULL },
1050 { "0.30", NULL },
1051 { "0.35", NULL },
1052 { "0.40", NULL },
1053 { "0.45", NULL },
1054 { "0.50", NULL },
1055 { "0.55", NULL },
1056 { "0.60", NULL },
1057 { "0.65", NULL },
1058 { "0.70", NULL },
1059 { "0.75", NULL },
1060 { "0.80", NULL },
1061 { "0.85", NULL },
1062 { "0.90", NULL },
1063 { "0.95", NULL },
1064 { "1.00", NULL },
1065 { "1.05", NULL },
1066 { "1.10", NULL },
1067 { "1.15", NULL },
1068 { "1.20", NULL },
1069 { "1.25", NULL },
1070 { "1.30", NULL },
1071 { "1.35", NULL },
1072 { "1.40", NULL },
1073 { "1.45", NULL },
1074 { "1.50", NULL },
1075 { "1.55", NULL },
1076 { "1.60", NULL },
1077 { "1.65", NULL },
1078 { "1.70", NULL },
1079 { "1.75", NULL },
1080 { "1.80", NULL },
1081 { "1.85", NULL },
1082 { "1.90", NULL },
1083 { "1.95", NULL },
1084 { "2.00", NULL },
1085 },
1086 "1.00",
1087 },
d6a231b7
S
1088 {
1089 "pcsx_rearmed_crosshair1",
1090 "Player 1 Lightgun Crosshair",
1091 NULL,
4d99e39b 1092 "Toggle player 1's crosshair for the Guncon or Konami Gun. Only works if RGB32 output is off (video options).",
d6a231b7
S
1093 NULL,
1094 "input",
1095 {
1096 { "disabled", NULL },
1097 { "blue", NULL },
1098 { "green", NULL },
1099 { "red", NULL },
1100 { "white", NULL },
1101 { NULL, NULL },
1102 },
1103 "disabled",
1104 },
1105 {
1106 "pcsx_rearmed_crosshair2",
1107 "Player 2 Lightgun Crosshair",
1108 NULL,
4d99e39b 1109 "Toggle player 2's crosshair for the Guncon or Konami Gun. Only works if RGB32 output is off (video options).",
d6a231b7
S
1110 NULL,
1111 "input",
1112 {
1113 { "disabled", NULL },
1114 { "blue", NULL },
1115 { "green", NULL },
1116 { "red", NULL },
1117 { "white", NULL },
1118 { NULL, NULL },
1119 },
1120 "disabled",
1121 },
1122 {
1123 "pcsx_rearmed_konamigunadjustx",
1124 "Konami Gun X Axis Offset",
1125 NULL,
1126 "Apply an X axis offset to light gun input when emulating a Konami Gun (Hyper Blaster / Justifier) device. Can be used to correct aiming misalignments.",
1127 NULL,
1128 "input",
1129 {
1130 { "-40", NULL },
1131 { "-39", NULL },
1132 { "-38", NULL },
1133 { "-37", NULL },
1134 { "-36", NULL },
1135 { "-35", NULL },
1136 { "-34", NULL },
1137 { "-33", NULL },
1138 { "-32", NULL },
1139 { "-31", NULL },
1140 { "-30", NULL },
1141 { "-29", NULL },
1142 { "-28", NULL },
1143 { "-27", NULL },
1144 { "-26", NULL },
1145 { "-25", NULL },
1146 { "-24", NULL },
1147 { "-23", NULL },
1148 { "-22", NULL },
1149 { "-21", NULL },
1150 { "-20", NULL },
1151 { "-19", NULL },
1152 { "-18", NULL },
1153 { "-17", NULL },
1154 { "-16", NULL },
1155 { "-15", NULL },
1156 { "-14", NULL },
1157 { "-13", NULL },
1158 { "-12", NULL },
1159 { "-11", NULL },
1160 { "-10", NULL },
1161 { "-9", NULL },
1162 { "-8", NULL },
1163 { "-7", NULL },
1164 { "-6", NULL },
1165 { "-5", NULL },
1166 { "-4", NULL },
1167 { "-3", NULL },
1168 { "-2", NULL },
1169 { "-1", NULL },
1170 { "0", NULL },
1171 { "1", NULL },
1172 { "2", NULL },
1173 { "3", NULL },
1174 { "4", NULL },
1175 { "5", NULL },
1176 { "6", NULL },
1177 { "7", NULL },
1178 { "8", NULL },
1179 { "9", NULL },
1180 { "10", NULL },
1181 { "11", NULL },
1182 { "12", NULL },
1183 { "13", NULL },
1184 { "14", NULL },
1185 { "15", NULL },
1186 { "16", NULL },
1187 { "17", NULL },
1188 { "18", NULL },
1189 { "19", NULL },
1190 { "20", NULL },
1191 { "21", NULL },
1192 { "22", NULL },
1193 { "23", NULL },
1194 { "24", NULL },
1195 { "25", NULL },
1196 { "26", NULL },
1197 { "27", NULL },
1198 { "28", NULL },
1199 { "29", NULL },
1200 { "30", NULL },
1201 { "31", NULL },
1202 { "32", NULL },
1203 { "33", NULL },
1204 { "34", NULL },
1205 { "35", NULL },
1206 { "36", NULL },
1207 { "37", NULL },
1208 { "38", NULL },
1209 { "39", NULL },
1210 { "40", NULL },
1211 { NULL, NULL },
1212 },
1213 "0",
1214 },
1215 {
1216 "pcsx_rearmed_konamigunadjusty",
1217 "Konami Gun Y Axis Offset",
1218 NULL,
1219 "Apply a Y axis offset to light gun input when emulating a Konami Gun (Hyper Blaster / Justifier) device. Can be used to correct aiming misalignments.",
1220 NULL,
1221 "input",
1222 {
1223 { "-40", NULL },
1224 { "-39", NULL },
1225 { "-38", NULL },
1226 { "-37", NULL },
1227 { "-36", NULL },
1228 { "-35", NULL },
1229 { "-34", NULL },
1230 { "-33", NULL },
1231 { "-32", NULL },
1232 { "-31", NULL },
1233 { "-30", NULL },
1234 { "-29", NULL },
1235 { "-28", NULL },
1236 { "-27", NULL },
1237 { "-26", NULL },
1238 { "-25", NULL },
1239 { "-24", NULL },
1240 { "-23", NULL },
1241 { "-22", NULL },
1242 { "-21", NULL },
1243 { "-20", NULL },
1244 { "-19", NULL },
1245 { "-18", NULL },
1246 { "-17", NULL },
1247 { "-16", NULL },
1248 { "-15", NULL },
1249 { "-14", NULL },
1250 { "-13", NULL },
1251 { "-12", NULL },
1252 { "-11", NULL },
1253 { "-10", NULL },
1254 { "-9", NULL },
1255 { "-8", NULL },
1256 { "-7", NULL },
1257 { "-6", NULL },
1258 { "-5", NULL },
1259 { "-4", NULL },
1260 { "-3", NULL },
1261 { "-2", NULL },
1262 { "-1", NULL },
1263 { "0", NULL },
1264 { "1", NULL },
1265 { "2", NULL },
1266 { "3", NULL },
1267 { "4", NULL },
1268 { "5", NULL },
1269 { "6", NULL },
1270 { "7", NULL },
1271 { "8", NULL },
1272 { "9", NULL },
1273 { "10", NULL },
1274 { "11", NULL },
1275 { "12", NULL },
1276 { "13", NULL },
1277 { "14", NULL },
1278 { "15", NULL },
1279 { "16", NULL },
1280 { "17", NULL },
1281 { "18", NULL },
1282 { "19", NULL },
1283 { "20", NULL },
1284 { "21", NULL },
1285 { "22", NULL },
1286 { "23", NULL },
1287 { "24", NULL },
1288 { "25", NULL },
1289 { "26", NULL },
1290 { "27", NULL },
1291 { "28", NULL },
1292 { "29", NULL },
1293 { "30", NULL },
1294 { "31", NULL },
1295 { "32", NULL },
1296 { "33", NULL },
1297 { "34", NULL },
1298 { "35", NULL },
1299 { "36", NULL },
1300 { "37", NULL },
1301 { "38", NULL },
1302 { "39", NULL },
1303 { "40", NULL },
1304 { NULL, NULL },
1305 },
1306 "0",
1307 },
7a8d521f 1308 {
1309 "pcsx_rearmed_gunconadjustx",
1310 "Guncon X Axis Offset",
1311 NULL,
1312 "Apply an X axis offset to light gun input when emulating a Guncon device. Can be used to correct aiming misalignments.",
1313 NULL,
1314 "input",
1315 {
d6a231b7
S
1316 { "-40", NULL },
1317 { "-39", NULL },
1318 { "-38", NULL },
1319 { "-37", NULL },
1320 { "-36", NULL },
1321 { "-35", NULL },
1322 { "-34", NULL },
1323 { "-33", NULL },
1324 { "-32", NULL },
1325 { "-31", NULL },
1326 { "-30", NULL },
1327 { "-29", NULL },
1328 { "-28", NULL },
1329 { "-27", NULL },
1330 { "-26", NULL },
7a8d521f 1331 { "-25", NULL },
1332 { "-24", NULL },
1333 { "-23", NULL },
1334 { "-22", NULL },
1335 { "-21", NULL },
1336 { "-20", NULL },
1337 { "-19", NULL },
1338 { "-18", NULL },
1339 { "-17", NULL },
1340 { "-16", NULL },
1341 { "-15", NULL },
1342 { "-14", NULL },
1343 { "-13", NULL },
1344 { "-12", NULL },
1345 { "-11", NULL },
1346 { "-10", NULL },
1347 { "-9", NULL },
1348 { "-8", NULL },
1349 { "-7", NULL },
1350 { "-6", NULL },
1351 { "-5", NULL },
1352 { "-4", NULL },
1353 { "-3", NULL },
1354 { "-2", NULL },
1355 { "-1", NULL },
1356 { "0", NULL },
1357 { "1", NULL },
1358 { "2", NULL },
1359 { "3", NULL },
1360 { "4", NULL },
1361 { "5", NULL },
1362 { "6", NULL },
1363 { "7", NULL },
1364 { "8", NULL },
1365 { "9", NULL },
1366 { "10", NULL },
1367 { "11", NULL },
1368 { "12", NULL },
1369 { "13", NULL },
1370 { "14", NULL },
1371 { "15", NULL },
1372 { "16", NULL },
1373 { "17", NULL },
1374 { "18", NULL },
1375 { "19", NULL },
1376 { "20", NULL },
1377 { "21", NULL },
1378 { "22", NULL },
1379 { "23", NULL },
1380 { "24", NULL },
1381 { "25", NULL },
d6a231b7
S
1382 { "26", NULL },
1383 { "27", NULL },
1384 { "28", NULL },
1385 { "29", NULL },
1386 { "30", NULL },
1387 { "31", NULL },
1388 { "32", NULL },
1389 { "33", NULL },
1390 { "34", NULL },
1391 { "35", NULL },
1392 { "36", NULL },
1393 { "37", NULL },
1394 { "38", NULL },
1395 { "39", NULL },
1396 { "40", NULL },
7a8d521f 1397 { NULL, NULL },
1398 },
1399 "0",
1400 },
1401 {
1402 "pcsx_rearmed_gunconadjusty",
1403 "Guncon Y Axis Offset",
1404 NULL,
1405 "Apply a Y axis offset to light gun input when emulating a Guncon device. Can be used to correct aiming misalignments.",
1406 NULL,
1407 "input",
1408 {
d6a231b7
S
1409 { "-40", NULL },
1410 { "-39", NULL },
1411 { "-38", NULL },
1412 { "-37", NULL },
1413 { "-36", NULL },
1414 { "-35", NULL },
1415 { "-34", NULL },
1416 { "-33", NULL },
1417 { "-32", NULL },
1418 { "-31", NULL },
1419 { "-30", NULL },
1420 { "-29", NULL },
1421 { "-28", NULL },
1422 { "-27", NULL },
1423 { "-26", NULL },
7a8d521f 1424 { "-25", NULL },
1425 { "-24", NULL },
1426 { "-23", NULL },
1427 { "-22", NULL },
1428 { "-21", NULL },
1429 { "-20", NULL },
1430 { "-19", NULL },
1431 { "-18", NULL },
1432 { "-17", NULL },
1433 { "-16", NULL },
1434 { "-15", NULL },
1435 { "-14", NULL },
1436 { "-13", NULL },
1437 { "-12", NULL },
1438 { "-11", NULL },
1439 { "-10", NULL },
1440 { "-9", NULL },
1441 { "-8", NULL },
1442 { "-7", NULL },
1443 { "-6", NULL },
1444 { "-5", NULL },
1445 { "-4", NULL },
1446 { "-3", NULL },
1447 { "-2", NULL },
1448 { "-1", NULL },
1449 { "0", NULL },
1450 { "1", NULL },
1451 { "2", NULL },
1452 { "3", NULL },
1453 { "4", NULL },
1454 { "5", NULL },
1455 { "6", NULL },
1456 { "7", NULL },
1457 { "8", NULL },
1458 { "9", NULL },
1459 { "10", NULL },
1460 { "11", NULL },
1461 { "12", NULL },
1462 { "13", NULL },
1463 { "14", NULL },
1464 { "15", NULL },
1465 { "16", NULL },
1466 { "17", NULL },
1467 { "18", NULL },
1468 { "19", NULL },
1469 { "20", NULL },
1470 { "21", NULL },
1471 { "22", NULL },
1472 { "23", NULL },
1473 { "24", NULL },
1474 { "25", NULL },
d6a231b7
S
1475 { "26", NULL },
1476 { "27", NULL },
1477 { "28", NULL },
1478 { "29", NULL },
1479 { "30", NULL },
1480 { "31", NULL },
1481 { "32", NULL },
1482 { "33", NULL },
1483 { "34", NULL },
1484 { "35", NULL },
1485 { "36", NULL },
1486 { "37", NULL },
1487 { "38", NULL },
1488 { "39", NULL },
1489 { "40", NULL },
7a8d521f 1490 { NULL, NULL },
1491 },
1492 "0",
1493 },
1494 {
1495 "pcsx_rearmed_gunconadjustratiox",
1496 "Guncon X Axis Response",
1497 NULL,
1498 "Adjust relative magnitude of horizontal light gun motion when emulating a Guncon device. Can be used to correct aiming misalignments.",
1499 NULL,
1500 "input",
1501 {
1502 { "0.75", NULL },
1503 { "0.76", NULL },
1504 { "0.77", NULL },
1505 { "0.78", NULL },
1506 { "0.79", NULL },
1507 { "0.80", NULL },
1508 { "0.81", NULL },
1509 { "0.82", NULL },
1510 { "0.83", NULL },
1511 { "0.84", NULL },
1512 { "0.85", NULL },
1513 { "0.86", NULL },
1514 { "0.87", NULL },
1515 { "0.88", NULL },
1516 { "0.89", NULL },
1517 { "0.90", NULL },
1518 { "0.91", NULL },
1519 { "0.92", NULL },
1520 { "0.93", NULL },
1521 { "0.94", NULL },
1522 { "0.95", NULL },
1523 { "0.96", NULL },
1524 { "0.97", NULL },
1525 { "0.98", NULL },
1526 { "0.99", NULL },
1527 { "1.00", NULL },
1528 { "1.01", NULL },
1529 { "1.02", NULL },
1530 { "1.03", NULL },
1531 { "1.04", NULL },
1532 { "1.05", NULL },
1533 { "1.06", NULL },
1534 { "1.07", NULL },
1535 { "1.08", NULL },
1536 { "1.09", NULL },
1537 { "1.10", NULL },
1538 { "1.11", NULL },
1539 { "1.12", NULL },
1540 { "1.13", NULL },
1541 { "1.14", NULL },
1542 { "1.15", NULL },
1543 { "1.16", NULL },
1544 { "1.17", NULL },
1545 { "1.18", NULL },
1546 { "1.19", NULL },
1547 { "1.20", NULL },
1548 { "1.21", NULL },
1549 { "1.22", NULL },
1550 { "1.23", NULL },
1551 { "1.24", NULL },
1552 { "1.25", NULL },
1553 { NULL, NULL },
1554 },
1555 "1.00",
1556 },
1557 {
1558 "pcsx_rearmed_gunconadjustratioy",
1559 "Guncon Y Axis Response",
1560 NULL,
1561 "Adjust relative magnitude of vertical light gun motion when emulating a Guncon device. Can be used to correct aiming misalignments.",
1562 NULL,
1563 "input",
1564 {
1565 { "0.75", NULL },
1566 { "0.76", NULL },
1567 { "0.77", NULL },
1568 { "0.78", NULL },
1569 { "0.79", NULL },
1570 { "0.80", NULL },
1571 { "0.81", NULL },
1572 { "0.82", NULL },
1573 { "0.83", NULL },
1574 { "0.84", NULL },
1575 { "0.85", NULL },
1576 { "0.86", NULL },
1577 { "0.87", NULL },
1578 { "0.88", NULL },
1579 { "0.89", NULL },
1580 { "0.90", NULL },
1581 { "0.91", NULL },
1582 { "0.92", NULL },
1583 { "0.93", NULL },
1584 { "0.94", NULL },
1585 { "0.95", NULL },
1586 { "0.96", NULL },
1587 { "0.97", NULL },
1588 { "0.98", NULL },
1589 { "0.99", NULL },
1590 { "1.00", NULL },
1591 { "1.01", NULL },
1592 { "1.02", NULL },
1593 { "1.03", NULL },
1594 { "1.04", NULL },
1595 { "1.05", NULL },
1596 { "1.06", NULL },
1597 { "1.07", NULL },
1598 { "1.08", NULL },
1599 { "1.09", NULL },
1600 { "1.10", NULL },
1601 { "1.11", NULL },
1602 { "1.12", NULL },
1603 { "1.13", NULL },
1604 { "1.14", NULL },
1605 { "1.15", NULL },
1606 { "1.16", NULL },
1607 { "1.17", NULL },
1608 { "1.18", NULL },
1609 { "1.19", NULL },
1610 { "1.20", NULL },
1611 { "1.21", NULL },
1612 { "1.22", NULL },
1613 { "1.23", NULL },
1614 { "1.24", NULL },
1615 { "1.25", NULL },
1616 { NULL, NULL },
1617 },
1618 "1.00",
1619 },
1620 {
1621 "pcsx_rearmed_icache_emulation",
1622 "Instruction Cache Emulation",
1623 NULL,
bc7c5acb 1624 "Enable emulation of the PSX CPU instruction cache. Improves accuracy at the expense of increased performance overheads. Required for Formula One 2001, Formula One Arcade and Formula One 99. [Interpreter only; partial on lightrec and ARM dynarecs]",
1625 NULL,
1626 "compat_hack",
1627 {
1628 { "enabled", NULL },
1629 { "disabled", NULL },
1630 { NULL, NULL },
1631 },
1632 "enabled",
1633 },
1634 {
1635 "pcsx_rearmed_exception_emulation",
1636 "Exception and Breakpoint Emulation",
1637 NULL,
1638 "Enable emulation of some almost never used PSX's debug features. This causes a performance hit, is not useful for games and is intended for PSX homebrew and romhack developers only. Only enable if you know what you are doing. [Interpreter only]",
7a8d521f 1639 NULL,
1640 "compat_hack",
1641 {
1642 { "disabled", NULL },
1643 { "enabled", NULL },
1644 { NULL, NULL },
1645 },
1646 "disabled",
1647 },
d135f6d2 1648#ifdef _3DS
1649#define V(x) { #x, NULL }
1650 {
1651 "pcsx_rearmed_3ds_appcputime",
1652 "3DS AppCpuTimeLimit",
1653 NULL,
1654 "% of syscore (core #1) CPU time allocated to the emulator",
1655 NULL,
1656 "speed_hack",
1657 {
1658 V( 5), V(10),
1659 V(15), V(20),
1660 V(25), V(30),
1661 V(35), V(40),
1662 V(45), V(50),
1663 V(55), V(60),
1664 V(65), V(70),
1665 V(75), V(80),
1666 { NULL, NULL},
1667 },
1668 "35",
1669 },
1670#undef V
1671#endif // _3DS
0aa7361c 1672 {
1673 "pcsx_rearmed_cd_turbo",
1674 "Turbo CD",
1675 NULL,
1676 "This makes the emulated CD-ROM extremely fast and can reduce loading times in some cases. Warning: many games were not programmed to handle such a speed. The game (or even the emulator) MAY CRASH at ANY TIME if this is enabled.",
1677 NULL,
1678 "speed_hack",
1679 {
1680 { "disabled", NULL },
1681 { "enabled", NULL },
1682 { NULL, NULL },
1683 },
1684 "disabled",
1685 },
7a8d521f 1686#if !defined(DRC_DISABLE) && !defined(LIGHTREC)
1687 {
1688 "pcsx_rearmed_nocompathacks",
1689 "Disable Automatic Compatibility Hacks",
1690 NULL,
1691 "By default, PCSX-ReARMed will apply auxiliary compatibility hacks automatically, based on the currently loaded content. This behaviour is required for correct operation, but may be disabled if desired.",
1692 NULL,
1693 "compat_hack",
1694 {
1695 { "disabled", NULL },
1696 { "enabled", NULL },
1697 { NULL, NULL },
1698 },
1699 "disabled",
1700 },
1701 {
1702 "pcsx_rearmed_nosmccheck",
1703 "(Speed Hack) Disable SMC Checks",
1704 "Disable SMC Checks",
1705 "Will cause crashes when loading, and lead to memory card failure.",
1706 NULL,
1707 "speed_hack",
1708 {
1709 { "disabled", NULL },
1710 { "enabled", NULL },
1711 { NULL, NULL },
1712 },
1713 "disabled",
1714 },
1715 {
1716 "pcsx_rearmed_gteregsunneeded",
1717 "(Speed Hack) Assume GTE Registers Unneeded",
1718 "Assume GTE Registers Unneeded",
1719 "May cause rendering errors.",
1720 NULL,
1721 "speed_hack",
1722 {
1723 { "disabled", NULL },
1724 { "enabled", NULL },
1725 { NULL, NULL },
1726 },
1727 "disabled",
1728 },
1729 {
1730 "pcsx_rearmed_nogteflags",
1731 "(Speed Hack) Disable GTE Flags",
1732 "Disable GTE Flags",
1733 "Will cause rendering errors.",
1734 NULL,
1735 "speed_hack",
1736 {
1737 { "disabled", NULL },
1738 { "enabled", NULL },
1739 { NULL, NULL },
1740 },
1741 "disabled",
1742 },
606bece1 1743#endif /* !DRC_DISABLE && !LIGHTREC */
7a8d521f 1744 {
1745 "pcsx_rearmed_nostalls",
7a8d521f 1746 "Disable CPU/GTE Stalls",
7a8d521f 1747 NULL,
0aa7361c 1748 "Will cause some games to run too quickly. Should be disabled in almost all cases."
606bece1 1749#if defined(LIGHTREC)
1750 " Interpreter only."
1751#endif
1752 ,
1753 NULL,
0aa7361c 1754 "speed_hack",
7a8d521f 1755 {
1756 { "disabled", NULL },
1757 { "enabled", NULL },
1758 { NULL, NULL },
1759 },
1760 "disabled",
1761 },
7a8d521f 1762 { NULL, NULL, NULL, NULL, NULL, NULL, {{0}}, NULL },
1763};
1764
1765struct retro_core_options_v2 options_us = {
1766 option_cats_us,
1767 option_defs_us
1768};
1769
1770/*
1771 ********************************
1772 * Language Mapping
1773 ********************************
1774*/
1775
1776#ifndef HAVE_NO_LANGEXTRA
1777struct retro_core_options_v2 *options_intl[RETRO_LANGUAGE_LAST] = {
1778 &options_us, /* RETRO_LANGUAGE_ENGLISH */
1779 NULL, /* RETRO_LANGUAGE_JAPANESE */
1780 NULL, /* RETRO_LANGUAGE_FRENCH */
1781 NULL, /* RETRO_LANGUAGE_SPANISH */
1782 NULL, /* RETRO_LANGUAGE_GERMAN */
1783 NULL, /* RETRO_LANGUAGE_ITALIAN */
1784 NULL, /* RETRO_LANGUAGE_DUTCH */
1785 NULL, /* RETRO_LANGUAGE_PORTUGUESE_BRAZIL */
1786 NULL, /* RETRO_LANGUAGE_PORTUGUESE_PORTUGAL */
1787 NULL, /* RETRO_LANGUAGE_RUSSIAN */
1788 NULL, /* RETRO_LANGUAGE_KOREAN */
1789 NULL, /* RETRO_LANGUAGE_CHINESE_TRADITIONAL */
1790 NULL, /* RETRO_LANGUAGE_CHINESE_SIMPLIFIED */
1791 NULL, /* RETRO_LANGUAGE_ESPERANTO */
1792 NULL, /* RETRO_LANGUAGE_POLISH */
1793 NULL, /* RETRO_LANGUAGE_VIETNAMESE */
1794 NULL, /* RETRO_LANGUAGE_ARABIC */
1795 NULL, /* RETRO_LANGUAGE_GREEK */
1796 &options_tr, /* RETRO_LANGUAGE_TURKISH */
1797};
1798#endif
1799
1800/*
1801 ********************************
1802 * Functions
1803 ********************************
1804*/
1805
1806/* Handles configuration/setting of core options.
1807 * Should be called as early as possible - ideally inside
1808 * retro_set_environment(), and no later than retro_load_game()
1809 * > We place the function body in the header to avoid the
1810 * necessity of adding more .c files (i.e. want this to
1811 * be as painless as possible for core devs)
1812 */
1813
1814static INLINE void libretro_set_core_options(retro_environment_t environ_cb,
1815 bool *categories_supported)
1816{
1817 unsigned version = 0;
1818#ifndef HAVE_NO_LANGEXTRA
1819 unsigned language = 0;
1820#endif
1821
1822 if (!environ_cb || !categories_supported)
1823 return;
1824
1825 *categories_supported = false;
1826
1827 if (!environ_cb(RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION, &version))
1828 version = 0;
1829
1830 if (version >= 2)
1831 {
1832#ifndef HAVE_NO_LANGEXTRA
1833 struct retro_core_options_v2_intl core_options_intl;
1834
1835 core_options_intl.us = &options_us;
1836 core_options_intl.local = NULL;
1837
1838 if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language) &&
1839 (language < RETRO_LANGUAGE_LAST) && (language != RETRO_LANGUAGE_ENGLISH))
1840 core_options_intl.local = options_intl[language];
1841
1842 *categories_supported = environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2_INTL,
1843 &core_options_intl);
1844#else
1845 *categories_supported = environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2,
1846 &options_us);
1847#endif
1848 }
1849 else
1850 {
1851 size_t i, j;
1852 size_t option_index = 0;
1853 size_t num_options = 0;
1854 struct retro_core_option_definition
1855 *option_v1_defs_us = NULL;
1856#ifndef HAVE_NO_LANGEXTRA
1857 size_t num_options_intl = 0;
1858 struct retro_core_option_v2_definition
1859 *option_defs_intl = NULL;
1860 struct retro_core_option_definition
1861 *option_v1_defs_intl = NULL;
1862 struct retro_core_options_intl
1863 core_options_v1_intl;
1864#endif
1865 struct retro_variable *variables = NULL;
1866 char **values_buf = NULL;
1867
1868 /* Determine total number of options */
1869 while (true)
1870 {
1871 if (option_defs_us[num_options].key)
1872 num_options++;
1873 else
1874 break;
1875 }
1876
1877 if (version >= 1)
1878 {
1879 /* Allocate US array */
1880 option_v1_defs_us = (struct retro_core_option_definition *)
1881 calloc(num_options + 1, sizeof(struct retro_core_option_definition));
1882
1883 /* Copy parameters from option_defs_us array */
1884 for (i = 0; i < num_options; i++)
1885 {
1886 struct retro_core_option_v2_definition *option_def_us = &option_defs_us[i];
1887 struct retro_core_option_value *option_values = option_def_us->values;
1888 struct retro_core_option_definition *option_v1_def_us = &option_v1_defs_us[i];
1889 struct retro_core_option_value *option_v1_values = option_v1_def_us->values;
1890
1891 option_v1_def_us->key = option_def_us->key;
1892 option_v1_def_us->desc = option_def_us->desc;
1893 option_v1_def_us->info = option_def_us->info;
1894 option_v1_def_us->default_value = option_def_us->default_value;
1895
1896 /* Values must be copied individually... */
1897 while (option_values->value)
1898 {
1899 option_v1_values->value = option_values->value;
1900 option_v1_values->label = option_values->label;
1901
1902 option_values++;
1903 option_v1_values++;
1904 }
1905 }
1906
1907#ifndef HAVE_NO_LANGEXTRA
1908 if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language) &&
1909 (language < RETRO_LANGUAGE_LAST) && (language != RETRO_LANGUAGE_ENGLISH) &&
1910 options_intl[language])
1911 option_defs_intl = options_intl[language]->definitions;
1912
1913 if (option_defs_intl)
1914 {
1915 /* Determine number of intl options */
1916 while (true)
1917 {
1918 if (option_defs_intl[num_options_intl].key)
1919 num_options_intl++;
1920 else
1921 break;
1922 }
1923
1924 /* Allocate intl array */
1925 option_v1_defs_intl = (struct retro_core_option_definition *)
1926 calloc(num_options_intl + 1, sizeof(struct retro_core_option_definition));
1927
1928 /* Copy parameters from option_defs_intl array */
1929 for (i = 0; i < num_options_intl; i++)
1930 {
1931 struct retro_core_option_v2_definition *option_def_intl = &option_defs_intl[i];
1932 struct retro_core_option_value *option_values = option_def_intl->values;
1933 struct retro_core_option_definition *option_v1_def_intl = &option_v1_defs_intl[i];
1934 struct retro_core_option_value *option_v1_values = option_v1_def_intl->values;
1935
1936 option_v1_def_intl->key = option_def_intl->key;
1937 option_v1_def_intl->desc = option_def_intl->desc;
1938 option_v1_def_intl->info = option_def_intl->info;
1939 option_v1_def_intl->default_value = option_def_intl->default_value;
1940
1941 /* Values must be copied individually... */
1942 while (option_values->value)
1943 {
1944 option_v1_values->value = option_values->value;
1945 option_v1_values->label = option_values->label;
1946
1947 option_values++;
1948 option_v1_values++;
1949 }
1950 }
1951 }
1952
1953 core_options_v1_intl.us = option_v1_defs_us;
1954 core_options_v1_intl.local = option_v1_defs_intl;
1955
1956 environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL, &core_options_v1_intl);
1957#else
1958 environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS, option_v1_defs_us);
1959#endif
1960 }
1961 else
1962 {
1963 /* Allocate arrays */
1964 variables = (struct retro_variable *)calloc(num_options + 1,
1965 sizeof(struct retro_variable));
1966 values_buf = (char **)calloc(num_options, sizeof(char *));
1967
1968 if (!variables || !values_buf)
1969 goto error;
1970
1971 /* Copy parameters from option_defs_us array */
1972 for (i = 0; i < num_options; i++)
1973 {
1974 const char *key = option_defs_us[i].key;
1975 const char *desc = option_defs_us[i].desc;
1976 const char *default_value = option_defs_us[i].default_value;
1977 struct retro_core_option_value *values = option_defs_us[i].values;
1978 size_t buf_len = 3;
1979 size_t default_index = 0;
1980
1981 values_buf[i] = NULL;
1982
1983 /* Skip options that are irrelevant when using the
1984 * old style core options interface */
1985 if ((strcmp(key, "pcsx_rearmed_show_input_settings") == 0) ||
1986 (strcmp(key, "pcsx_rearmed_show_gpu_peops_settings") == 0) ||
1987 (strcmp(key, "pcsx_rearmed_show_gpu_unai_settings") == 0))
1988 continue;
1989
1990 if (desc)
1991 {
1992 size_t num_values = 0;
1993
1994 /* Determine number of values */
1995 while (true)
1996 {
1997 if (values[num_values].value)
1998 {
1999 /* Check if this is the default value */
2000 if (default_value)
2001 if (strcmp(values[num_values].value, default_value) == 0)
2002 default_index = num_values;
2003
2004 buf_len += strlen(values[num_values].value);
2005 num_values++;
2006 }
2007 else
2008 break;
2009 }
2010
2011 /* Build values string */
2012 if (num_values > 0)
2013 {
2014 buf_len += num_values - 1;
2015 buf_len += strlen(desc);
2016
2017 values_buf[i] = (char *)calloc(buf_len, sizeof(char));
2018 if (!values_buf[i])
2019 goto error;
2020
2021 strcpy(values_buf[i], desc);
2022 strcat(values_buf[i], "; ");
2023
2024 /* Default value goes first */
2025 strcat(values_buf[i], values[default_index].value);
2026
2027 /* Add remaining values */
2028 for (j = 0; j < num_values; j++)
2029 {
2030 if (j != default_index)
2031 {
2032 strcat(values_buf[i], "|");
2033 strcat(values_buf[i], values[j].value);
2034 }
2035 }
2036 }
2037 }
2038
2039 variables[option_index].key = key;
2040 variables[option_index].value = values_buf[i];
2041 option_index++;
2042 }
2043
2044 /* Set variables */
2045 environ_cb(RETRO_ENVIRONMENT_SET_VARIABLES, variables);
2046 }
2047
2048error:
2049 /* Clean up */
2050
2051 if (option_v1_defs_us)
2052 {
2053 free(option_v1_defs_us);
2054 option_v1_defs_us = NULL;
2055 }
2056
2057#ifndef HAVE_NO_LANGEXTRA
2058 if (option_v1_defs_intl)
2059 {
2060 free(option_v1_defs_intl);
2061 option_v1_defs_intl = NULL;
2062 }
2063#endif
2064
2065 if (values_buf)
2066 {
2067 for (i = 0; i < num_options; i++)
2068 {
2069 if (values_buf[i])
2070 {
2071 free(values_buf[i]);
2072 values_buf[i] = NULL;
2073 }
2074 }
2075
2076 free(values_buf);
2077 values_buf = NULL;
2078 }
2079
2080 if (variables)
2081 {
2082 free(variables);
2083 variables = NULL;
2084 }
2085 }
2086}
2087
2088#ifdef __cplusplus
2089}
2090#endif
2091
2092#endif