-
Notifications
You must be signed in to change notification settings - Fork 131
/
libretro_core_options.h
2032 lines (1972 loc) · 64.1 KB
/
libretro_core_options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#ifndef LIBRETRO_CORE_OPTIONS_H__
#define LIBRETRO_CORE_OPTIONS_H__
#include <stdlib.h>
#include <string.h>
#include <libretro.h>
#include <retro_inline.h>
#ifndef HAVE_NO_LANGEXTRA
#include "libretro_core_options_intl.h"
#endif
#include "libretro_options.h"
/*
********************************
* VERSION: 2.0
********************************
*
* - 2.0: Add support for core options v2 interface
* - 1.3: Move translations to libretro_core_options_intl.h
* - libretro_core_options_intl.h includes BOM and utf-8
* fix for MSVC 2010-2013
* - Added HAVE_NO_LANGEXTRA flag to disable translations
* on platforms/compilers without BOM support
* - 1.2: Use core options v1 interface when
* RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION is >= 1
* (previously required RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION == 1)
* - 1.1: Support generation of core options v0 retro_core_option_value
* arrays containing options with a single value
* - 1.0: First commit
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
********************************
* Core Option Definitions
********************************
*/
/* RETRO_LANGUAGE_ENGLISH */
/* Default language:
* - All other languages must include the same keys and values
* - Will be used as a fallback in the event that frontend language
* is not available
* - Will be used as a fallback for any missing entries in
* frontend language definition */
struct retro_core_option_v2_category option_cats_us[] = {
{
"video",
"Video",
"Change aspect ratio, display cropping, video filter and frame skipping settings."
},
{
"osd",
"On-Screen Display",
"Change notifications being shown on-screen."
},
{
"input",
"Input",
"Change light gun, mouse and neGcon settings."
},
{
"memcards",
"Memory Card",
"Change settings related to the virtual Memory Card(s) used by the system."
},
{
"pgxp",
"PGXP (Precision Geometry Transform Pipeline)",
"These options control enhancements which can improve graphics compared to the original console. PGXP can get rid of warping textures and Z-fighting issues."
},
{
"hacks",
"Emulation Hacks",
"Change processor overclocking and emulation accuracy settings affecting low-level performance and compatibility."
},
{ NULL, NULL, NULL },
};
struct retro_core_option_v2_definition option_defs_us[] = {
{
BEETLE_OPT(internal_resolution),
"Internal GPU Resolution",
NULL,
"Choose internal resolution multiplier. Resolutions higher than '1x (Native)' improve fidelity of 3D models at the expense of increased performance requirements. 2D elements are generally unaffected by this setting.",
NULL,
"video",
{
{ "1x(native)", "1x (Native)" },
{ "2x", NULL },
{ "4x", NULL },
{ "8x", NULL },
{ "16x", NULL },
{ NULL, NULL },
},
"1x(native)"
},
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
{
BEETLE_OPT(depth),
"Internal Color Depth",
NULL,
"Choose internal color depth. Higher color depth can reduce color banding effects without the use of dithering. 16 bpp emulates original hardware but may have visible banding if dithering is not enabled. 'Dithering Pattern' is recommended to be disabled when this option is set to 32 bpp.",
NULL,
"video",
{
{ "16bpp(native)", "16 bpp (Native)" },
{ "32bpp", "32 bpp" },
{ NULL, NULL },
},
"16bpp(native)"
},
// Sort of, it's more like 15-bit high color and 24-bit true color for visible output. The alpha channel is used for mask bit. Vulkan renderer uses ABGR1555_555 for 31 bits internal? FMVs are always 24-bit on all renderers like original hardware (BGR888, no alpha)
#endif
{
BEETLE_OPT(dither_mode),
"Dithering Pattern",
NULL,
"Choose dithering pattern configuration. '1x (Native)' emulates native low resolution dithering used by original hardware to smooth out color banding artifacts visible at native color depth. 'Internal Resolution' scales dithering granularity to the configured internal resolution for cleaner results. Recommended to be disabled when running at 32 bpp color depth. Note: On Vulkan, enabling this will force downsampling to native color depth, while disabling will automatically enable output at higher color depth.",
NULL,
"video",
{
{ "1x(native)", "1x (Native)" },
{ "internal resolution", "Internal Resolution" },
{ "disabled", NULL },
{ NULL, NULL },
},
"1x(native)"
},
#ifdef HAVE_VULKAN
{
BEETLE_OPT(scaled_uv_offset),
"Texture UV Offset",
NULL,
"Sample textures for 3D polygons at an offset for higher than 1x internal resolution. Reduces texture seams but may cause unintended graphical glitches.",
NULL,
"video",
{
{ "enabled", NULL },
{ "disabled", NULL },
{ NULL, NULL },
},
"enabled"
},
#endif
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(HAVE_VULKAN)
{
BEETLE_OPT(filter),
"Texture Filtering",
NULL,
"Choose texture filtering method. 'Nearest' emulates original hardware. 'Bilinear' and '3-Point' are smoothing filters, which reduce pixelation via blurring. 'SABR', 'xBR', and 'JINC2' are upscaling filters that may improve texture fidelity/sharpness at the expense of increased performance requirements. Only supported by the hardware renderers.",
NULL,
"video",
{
{ "nearest", "Nearest" },
{ "SABR", NULL },
{ "xBR", NULL },
{ "bilinear", "Bilinear" },
{ "3-point", "3-Point" },
{ "JINC2", NULL },
{ NULL, NULL },
},
"nearest"
},
#ifdef HAVE_VULKAN
{
BEETLE_OPT(filter_exclude_sprite),
"Exclude Sprites from Filtering",
NULL,
"Do not apply texture filtering to sprites. Prevents seams in various games with 2D sprite-rendered backgrounds. Use together with Adaptive Smoothing or another post-processing filter for best effect.",
NULL,
"video",
{
{ "disabled", NULL },
{ "opaque", "Opaque Only" },
{ "all", "Opaque and Semi-Transparent" },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(filter_exclude_2d_polygon),
"Exclude 2D Polygons from Filtering",
NULL,
"Do not apply texture filtering to 2D polygons. 2D polygons are detected with a heuristic and there may be glitches. Use together with Adaptive Smoothing or another post-processing filter for best effect.",
NULL,
"video",
{
{ "disabled", NULL },
{ "opaque", "Opaque Only" },
{ "all", "Opaque and Semi-Transparent" },
{ NULL, NULL },
},
"disabled"
},
#endif
#endif
#ifdef HAVE_VULKAN
{
BEETLE_OPT(adaptive_smoothing),
"Adaptive Smoothing",
NULL,
"Smooth out 2D artwork and UI elements without blurring 3D rendered objects. Only supported by the Vulkan renderer.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(super_sampling),
"Supersampling (Downsample to Native Resolution)",
NULL,
"Downsample rendered content from upscaled internal resolution down to native resolution. Combining this with higher internal resolution multipliers allows for games to be displayed with anti-aliased 3D objects at native low resolution. Produces best results when applied to titles that mix 2D and 3D elements (e.g. 3D characters on pre-rendered backgrounds), and works well in conjunction with CRT shaders. Only supported by the Vulkan renderer. Note: 'Dithering Pattern' is recommended to be disabled when enabling this option.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(msaa),
"Multi-Sampled Anti Aliasing",
NULL,
"Choose MSAA level for rendered content. Improves the appearance of 3D objects. Only supported by the Vulkan renderer.",
NULL,
"video",
{
{ "1x", NULL },
{ "2x", NULL },
{ "4x", NULL },
{ "8x", NULL },
{ "16x", NULL },
{ NULL, NULL },
},
"1x"
},
{
BEETLE_OPT(mdec_yuv),
"MDEC YUV Chroma Filter",
NULL,
"Improve the quality of FMV playback by reducing 'macroblocking' artifacts (squares/jagged edges). Only supported by the Vulkan renderer.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(track_textures),
"Track Textures",
NULL,
"Prerequisite for texture dumping and replacement. Will probably crash in most games.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#ifdef TEXTURE_DUMPING_ENABLED
{
BEETLE_OPT(dump_textures),
"Dump Textures",
NULL,
"Dump used textures to <cd>-texture-dump/",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#endif
{
BEETLE_OPT(replace_textures),
"Replace Textures",
NULL,
"Replace textures using HD versions from <cd>-texture-replacements/",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#endif
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
{
BEETLE_OPT(wireframe),
"Wireframe Mode (Debug)",
NULL,
"Render 3D models in outline form without textures or shading. Only supported by the OpenGL hardware renderer. Note: This is for debugging purposes, and should normally be disabled.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#endif
{
BEETLE_OPT(frame_duping),
"Frame Duping (Speedup)",
NULL,
"When enabled and supported by the libretro frontend, this provides a small performance increase by directing the frontend to repeat the previous frame if the core has nothing new to display.",
NULL,
"video",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(display_internal_fps),
"Display Internal FPS",
NULL,
"Display the internal frame rate at which the emulated PlayStation system is rendering content. Note: Requires onscreen notifications to be enabled in the libretro frontend.",
NULL,
"osd",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(display_osd),
"Display OSD Messages",
NULL,
"Display OSD messages generated by the core.",
NULL,
"osd",
{
{ "enabled", NULL },
{ "disabled", NULL },
{ NULL, NULL },
},
"enabled"
},
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(HAVE_VULKAN)
{
BEETLE_OPT(display_vram),
"Display Full VRAM (Debug)",
NULL,
"Visualize the entire emulated console's VRAM. Only supported by the OpenGL and Vulkan hardware renderers. Note: This is for debugging purposes, and should normally be disabled.",
NULL,
"osd",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#endif
{
BEETLE_OPT(analog_calibration),
"Analog Self-Calibration",
NULL,
"When the input device is set to DualShock, Analog Controller, Analog Joystick, or neGcon, this option enables dynamic calibration of analog inputs. Maximum registered input values are monitored in real time and used to scale analog coordinates passed to the emulator. This should be used for games such as Mega Man Legends 2 that expect larger values than what modern controllers provide. For best results, analog sticks should be rotated at full extent to tune the calibration algorithm each time content is loaded.",
NULL,
"input",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(analog_toggle),
"DualShock Analog Mode Toggle",
NULL,
"When the input device type is DualShock, this option allows the emulated DualShock to be toggled between DIGITAL and ANALOG mode like original hardware. Mode can also be toggled by using the selected button combination.",
NULL,
"input",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ "enabled-analog", "Default-Analog" },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(analog_toggle_combo),
"DualShock Analog Mode Combo",
NULL,
"Choose the button combination that will be used to toggle between DIGITAL and ANALOG mode for the emulated DualShock.",
NULL,
"input",
{
{ "l1+l2+r1+r2+start+select", "L1 + L2 + R1 + R2 + Start + Select" },
{ "l1+r1+select", "L1 + R1 + Select" },
{ "l1+r1+start", "L1 + R1 + Start" },
{ "l1+r1+l3", "L1 + R1 + L3" },
{ "l1+r1+r3", "L1 + R1 + R3" },
{ "l2+r2+select", "L2 + R2 + Select" },
{ "l2+r2+start", "L2 + R2 + Start" },
{ "l2+r2+l3", "L2 + R2 + L3" },
{ "l2+r2+r3", "L2 + R2 + R3" },
{ "l3+r3", "L3 + R3" },
{ NULL, NULL },
},
"l1+r1+select"
},
{
BEETLE_OPT(analog_toggle_hold),
"DualShock Analog Mode Combo Hold Delay",
NULL,
"Set the hold time for the analog mode combo buttons.",
NULL,
"input",
{
{ "0", "0 Second Delay" },
{ "1", "1 Second Delay" },
{ "2", "2 Second Delay" },
{ "3", "3 Second Delay" },
{ "4", "4 Second Delay" },
{ "5", "5 Second Delay" },
{ NULL, NULL },
},
"1"
},
{
BEETLE_OPT(enable_multitap_port1),
"Port 1: Multitap Enable",
NULL,
"Enable multitap functionality on port 1.",
NULL,
"input",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(enable_multitap_port2),
"Port 2: Multitap Enable",
NULL,
"Enable multitap functionality on port 2.",
NULL,
"input",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(gun_input_mode),
"Gun Input Mode",
NULL,
"Choose whether to use a mouse-controlled 'Light Gun' or a 'Touchscreen' input when device type is set to 'Guncon/G-Con 45' or 'Justifier'.",
NULL,
"input",
{
{ "lightgun", "Light Gun" },
{ "touchscreen", "Touchscreen" },
{ NULL, NULL },
},
"lightgun"
},
// Shouldn't the gun_input_mode just be Mouse vs. Touchscreen?
{
BEETLE_OPT(gun_cursor),
"Gun Cursor",
NULL,
"Choose the gun cursor to be displayed on screen while using the 'Guncon/G-Con 45' and 'Justifier' input device types. When disabled, crosshairs are always hidden.",
NULL,
"input",
{
{ "cross", "Cross" },
{ "dot", "Dot" },
{ "off", "No Cursor" },
{ NULL, NULL },
},
"cross"
},
{
BEETLE_OPT(crosshair_color_p1),
"Port 1: Gun Crosshair Color",
NULL,
"Choose the light gun crosshair color for port 1.",
NULL,
"input",
{
{ "red", "Red" },
{ "blue", "Blue" },
{ "green", "Green" },
{ "orange", "Orange" },
{ "yellow", "Yellow" },
{ "cyan", "Cyan" },
{ "pink", "Pink" },
{ "purple", "Purple" },
{ "black", "Black" },
{ "white", "White" },
{ NULL, NULL },
},
"red"
},
{
BEETLE_OPT(crosshair_color_p2),
"Port 2: Gun Crosshair Color",
NULL,
"Choose the light gun crosshair color for port 2.",
NULL,
"input",
{
{ "blue", "Blue" },
{ "red", "Red" },
{ "green", "Green" },
{ "orange", "Orange" },
{ "yellow", "Yellow" },
{ "cyan", "Cyan" },
{ "pink", "Pink" },
{ "purple", "Purple" },
{ "black", "Black" },
{ "white", "White" },
{ NULL, NULL },
},
"blue"
},
{
BEETLE_OPT(mouse_sensitivity),
"Mouse Sensitivity",
NULL,
"Choose the responsiveness of the 'Mouse' input device type.",
NULL,
"input",
{
{ "5%", NULL },
{ "10%", NULL },
{ "15%", NULL },
{ "20%", NULL },
{ "25%", NULL },
{ "30%", NULL },
{ "35%", NULL },
{ "40%", NULL },
{ "45%", NULL },
{ "50%", NULL },
{ "55%", NULL },
{ "60%", NULL },
{ "65%", NULL },
{ "70%", NULL },
{ "75%", NULL },
{ "80%", NULL },
{ "85%", NULL },
{ "90%", NULL },
{ "95%", NULL },
{ "100%", "100% (Default)" },
{ "105%", NULL },
{ "110%", NULL },
{ "115%", NULL },
{ "120%", NULL },
{ "125%", NULL },
{ "130%", NULL },
{ "135%", NULL },
{ "140%", NULL },
{ "145%", NULL },
{ "150%", NULL },
{ "155%", NULL },
{ "160%", NULL },
{ "165%", NULL },
{ "170%", NULL },
{ "175%", NULL },
{ "180%", NULL },
{ "185%", NULL },
{ "190%", NULL },
{ "195%", NULL },
{ "200%", NULL },
{ NULL, NULL },
},
"100%"
},
{
BEETLE_OPT(negcon_response),
"neGcon Twist Response",
NULL,
"Choose the response type of the RetroPad left analog stick when simulating the 'twist' action of emulated 'neGcon' input devices. Analog stick displacement may be mapped to neGcon rotation angle either linearly, quadratically or cubically. 'Quadratic' allows for greater precision than 'Linear' when making small movements. 'Cubic' further increases small movement precision, but 'exaggerates' larger movements. Note: 'Linear' is only recommended when using racing wheel peripherals. Conventional controllers implement analog input in a manner fundamentally different from the neGcon 'twist' mechanism, such that linear mapping over-amplifies small movements, impairing fine control. In most cases, 'Quadratic' provides the closest approximation of real hardware.",
NULL,
"input",
{
{ "linear", "Linear" },
{ "quadratic", "Quadratic" },
{ "cubic", "Cubic" },
{ NULL, NULL },
},
"linear"
},
{
BEETLE_OPT(negcon_deadzone),
"neGcon Twist Deadzone",
NULL,
"Choose the deadzone of the RetroPad left analog stick when simulating the 'twist' action of emulated 'neGcon' input devices. Used to eliminate controller drift. Note: Most neGcon-compatible titles provide in-game options for setting a 'twist' deadzone value. To avoid loss of precision, the in-game deadzone should *always* be set to zero. Any required adjustments should *only* be applied via this core option. This is particularly important when 'neGcon Twist Response' is set to 'Quadratic' or 'Cubic'.",
NULL,
"input",
{
{ "0%", NULL },
{ "5%", NULL },
{ "10%", NULL },
{ "15%", NULL },
{ "20%", NULL },
{ "25%", NULL },
{ "30%", NULL },
{ NULL, NULL },
},
"0%"
},
{
BEETLE_OPT(use_mednafen_memcard0_method),
"Memory Card 0 Method (Restart Required)",
NULL,
"Choose the save data format used for memory card 0. 'Mednafen' may be used for compatibility with the stand-alone version of Mednafen. When used with Beetle PSX, Libretro (.srm) and Mednafen (.mcr) saves have internally identical formats and can be converted between one another via renaming.",
NULL,
"memcards",
{
{ "libretro", "Libretro" },
{ "mednafen", "Mednafen" },
{ NULL, NULL },
},
"libretro"
},
{
BEETLE_OPT(enable_memcard1),
"Enable Memory Card 1 (Restart Required)",
NULL,
"Emulate a second memory card in slot 1. When disabled, games can only access the memory card in slot 0. Note: Some games require this option to be disabled for correct operation (e.g. Codename Tenka). Note: Memory Card 1 uses the Mednafen (.mcr) save format.",
NULL,
"memcards",
{
{ "enabled", NULL },
{ "disabled", NULL },
{ NULL, NULL },
},
"enabled"
},
{
BEETLE_OPT(shared_memory_cards),
"Shared Memory Cards (Restart Required)",
NULL,
"When enabled, all games will save to and load from the same memory card files. When disabled, separate memory card files will be generated for each item of loaded content. Note: if 'Memory Card 0 Method' is set to 'Libretro', only the right memory card will be affected.",
NULL,
"memcards",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(memcard_left_index),
"Memory Card Left Index",
NULL,
"Change the memory card currently loaded in the left slot. This option will only work if Memory Card 0 method is set to Mednafen. The default card is index 0.",
NULL,
"memcards",
{
{ "0", NULL },
{ "1", NULL },
{ "2", NULL },
{ "3", NULL },
{ "4", NULL },
{ "5", NULL },
{ "6", NULL },
{ "7", NULL },
{ "8", NULL },
{ "9", NULL },
{ "10", NULL },
{ "11", NULL },
{ "12", NULL },
{ "13", NULL },
{ "14", NULL },
{ "15", NULL },
{ "16", NULL },
{ "17", NULL },
{ "18", NULL },
{ "19", NULL },
{ "20", NULL },
{ "21", NULL },
{ "22", NULL },
{ "23", NULL },
{ "24", NULL },
{ "25", NULL },
{ "26", NULL },
{ "27", NULL },
{ "28", NULL },
{ "29", NULL },
{ "30", NULL },
{ "31", NULL },
{ "32", NULL },
{ "33", NULL },
{ "34", NULL },
{ "35", NULL },
{ "36", NULL },
{ "37", NULL },
{ "38", NULL },
{ "39", NULL },
{ "40", NULL },
{ "41", NULL },
{ "42", NULL },
{ "43", NULL },
{ "44", NULL },
{ "45", NULL },
{ "46", NULL },
{ "47", NULL },
{ "48", NULL },
{ "49", NULL },
{ "50", NULL },
{ "51", NULL },
{ "52", NULL },
{ "53", NULL },
{ "54", NULL },
{ "55", NULL },
{ "56", NULL },
{ "57", NULL },
{ "58", NULL },
{ "59", NULL },
{ "60", NULL },
{ "61", NULL },
{ "62", NULL },
{ "63", NULL },
{ NULL, NULL },
},
"0"
},
{
BEETLE_OPT(memcard_right_index),
"Memory Card Right Index",
NULL,
"Change the memory card currently loaded in the right slot. This option will only work if Memory Card 1 is enabled. The default card is index 1.",
NULL,
"memcards",
{
{ "0", NULL },
{ "1", "1 (Default)" },
{ "2", NULL },
{ "3", NULL },
{ "4", NULL },
{ "5", NULL },
{ "6", NULL },
{ "7", NULL },
{ "8", NULL },
{ "9", NULL },
{ "10", NULL },
{ "11", NULL },
{ "12", NULL },
{ "13", NULL },
{ "14", NULL },
{ "15", NULL },
{ "16", NULL },
{ "17", NULL },
{ "18", NULL },
{ "19", NULL },
{ "20", NULL },
{ "21", NULL },
{ "22", NULL },
{ "23", NULL },
{ "24", NULL },
{ "25", NULL },
{ "26", NULL },
{ "27", NULL },
{ "28", NULL },
{ "29", NULL },
{ "30", NULL },
{ "31", NULL },
{ "32", NULL },
{ "33", NULL },
{ "34", NULL },
{ "35", NULL },
{ "36", NULL },
{ "37", NULL },
{ "38", NULL },
{ "39", NULL },
{ "40", NULL },
{ "41", NULL },
{ "42", NULL },
{ "43", NULL },
{ "44", NULL },
{ "45", NULL },
{ "46", NULL },
{ "47", NULL },
{ "48", NULL },
{ "49", NULL },
{ "50", NULL },
{ "51", NULL },
{ "52", NULL },
{ "53", NULL },
{ "54", NULL },
{ "55", NULL },
{ "56", NULL },
{ "57", NULL },
{ "58", NULL },
{ "59", NULL },
{ "60", NULL },
{ "61", NULL },
{ "62", NULL },
{ "63", NULL },
{ NULL, NULL },
},
"1"
},
{
BEETLE_OPT(pgxp_mode),
"PGXP Operation Mode",
NULL,
"Allows 3D objects to be rendered with subpixel precision, minimizing distortion and jitter of 3D objects seen on original hardware due to the usage of fixed point vertex coordinates. 'Memory Only' mode has minimal compatibility issues and is recommended for general use. 'Memory + CPU (Buggy)' mode can reduce jitter even further but has high performance requirements and may cause various geometry errors.",
NULL,
"pgxp",
{
{ "disabled", NULL },
{ "memory only", "Memory Only" },
{ "memory + CPU", "Memory + CPU (Buggy)" },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(pgxp_2d_tol),
"PGXP 2D Geometry Tolerance",
NULL,
"Hide more glaring errors in PGXP operations: the value specifies the tolerance in which PGXP values will be kept in case of geometries without proper depth information.",
NULL,
"pgxp",
{
{ "disabled", NULL },
{ "0px", NULL },
{ "1px", NULL },
{ "2px", NULL },
{ "3px", NULL },
{ "4px", NULL },
{ "5px", NULL },
{ "6px", NULL },
{ "7px", NULL },
{ "8px", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(pgxp_nclip),
"PGXP Primitive Culling",
NULL,
"Use PGXP's NCLIP implementation. Improves appearance by reducing holes in geometries with PGXP coordinates. Known to cause some games to lock up in various circumstances.",
NULL,
"pgxp",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(HAVE_VULKAN)
{
BEETLE_OPT(pgxp_vertex),
"PGXP Vertex Cache",
NULL,
"Cache PGXP-enhanced vertex positions for re-use across polygon draws. Can potentially improve object alignment and reduce visible seams when rendering textures, but false positives when querying the cache may produce graphical glitches. It is currently recommended to leave this option disabled. This option is applied only when PGXP Operation Mode is enabled. Only supported by the hardware renderers.",
NULL,
"pgxp",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(pgxp_texture),
"PGXP Perspective Correct Texturing",
NULL,
"Replace native PSX affine texture mapping with perspective correct texture mapping. Eliminates position-dependent distortion and warping of textures, resulting in properly aligned textures. This option is applied only when PGXP Operation Mode is enabled. Only supported by the hardware renderers.",
NULL,
"pgxp",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
#endif
{
BEETLE_OPT(line_render),
"Line-to-Quad Hack",
NULL,
"Choose line-to-quad hack method. Some games (e.g. Doom, Hexen, Soul Blade, etc.) draw horizontal lines by stretching single-pixel-high triangles across the screen, which are rasterized as a row of pixels on original hardware. This hack detects these small triangles and converts them to quads as required, allowing them to be displayed properly on the hardware renderers and at upscaled internal resolutions. 'Aggressive' is required for some titles (e.g. Dark Forces, Duke Nukem) but may otherwise introduce graphical glitches. Leave at 'Default' if unsure.",
NULL,
"hacks",
{
{ "default", "Default" },
{ "aggressive", "Aggressive" },
{ "disabled", NULL },
{ NULL, NULL },
},
"default"
},
{
BEETLE_OPT(widescreen_hack),
"Widescreen Mode Hack",
NULL,
"Render 3D content anamorphically and output the emulated framebuffer at a widescreen aspect ratio. Produces best results with fully 3D games. 2D elements will be horizontally stretched and may be misaligned.",
NULL,
"hacks",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
BEETLE_OPT(widescreen_hack_aspect_ratio),
"Widescreen Mode Hack Aspect Ratio",
NULL,
"Choose the aspect ratio to be used by the Widescreen Mode Hack.",
NULL,
"hacks",
{
{ "16:9", NULL },
{ "16:10", NULL },
{ "18:9", NULL },
{ "19:9", NULL },
{ "20:9", NULL },
{ "21:9", NULL }, // 64:27
{ "32:9", NULL },
{ NULL, NULL },
},
"16:9"
},
{
BEETLE_OPT(cpu_freq_scale),
"CPU Frequency Scaling (Overclock)",
NULL,
"Overclock (or underclock) the emulated PSX CPU. Overclocking can eliminate slowdown and improve frame rates in certain games at the expense of increased performance requirements. Note that some games have an internal frame rate limiter and may not benefit from overclocking. May cause certain effects to animate faster than intended in some titles when overclocked.",
NULL,
"hacks",
{
{ "50%", NULL },
{ "60%", NULL },
{ "70%", NULL },
{ "80%", NULL },
{ "90%", NULL },
{ "100%(native)", "100% (Native)" },
{ "110%", NULL },
{ "120%", NULL },
{ "130%", NULL },
{ "140%", NULL },
{ "150%", NULL },
{ "160%", NULL },
{ "170%", NULL },
{ "180%", NULL },
{ "190%", NULL },
{ "200%", NULL },
{ "210%", NULL },
{ "220%", NULL },
{ "230%", NULL },
{ "240%", NULL },
{ "250%", NULL },
{ "260%", NULL },
{ "270%", NULL },
{ "280%", NULL },
{ "290%", NULL },
{ "300%", NULL },
{ "310%", NULL },
{ "320%", NULL },