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