aboutsummaryrefslogtreecommitdiff
path: root/overrides/mednafen_wswan.h
diff options
context:
space:
mode:
authorneonloop2023-07-26 15:17:25 +0000
committerneonloop2023-07-26 15:17:25 +0000
commitd802b95131c53258bae55fe04db2be648b0c6c55 (patch)
tree0ed652287551f42bac47fa01567c32550fe9540b /overrides/mednafen_wswan.h
parent694af47e2b3dc8c24dac704f293f4bcf9ab67858 (diff)
downloadpicoarch-d802b95131c53258bae55fe04db2be648b0c6c55.tar.gz
picoarch-d802b95131c53258bae55fe04db2be648b0c6c55.tar.bz2
picoarch-d802b95131c53258bae55fe04db2be648b0c6c55.zip
Adds mednafen_ngp, mednafen_wswan, and stella2014 cores
Diffstat (limited to 'overrides/mednafen_wswan.h')
-rw-r--r--overrides/mednafen_wswan.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/overrides/mednafen_wswan.h b/overrides/mednafen_wswan.h
new file mode 100644
index 0000000..6f27e30
--- /dev/null
+++ b/overrides/mednafen_wswan.h
@@ -0,0 +1,65 @@
+#include "overrides.h"
+
+static const struct core_override_option mednafen_wswan_core_option_overrides[] = {
+ {
+ .key = "wswan_rotate_display",
+ .info = "Choose the orientation of the console screen. 'Manual' enables rotation via the controller.",
+ },
+ {
+ .key = "wswan_rotate_keymap",
+ .desc = "Rotate Buttons",
+ },
+ {
+ .key = "wswan_gfx_colors",
+ .desc = "Color Depth",
+ .info = "24-bit is slower and not available on all platforms. Restart required.",
+ },
+ {
+ .key = "wswan_frameskip",
+ .info = "Skip frames to avoid audio crackling. Improves performance at the expense of visual smoothness.",
+ },
+ {
+ .key = "wswan_frameskip_threshold",
+ .desc = "FS Threshold (%%)",
+ .info = "When 'Frameskip' is set to 'Threshold', sets how low the audio buffer can get before frames will be skipped.",
+ },
+ {
+ .key = "wswan_60hz_mode",
+ .info = "Update the display at 60Hz instead of the native 75Hz WonderSwan refresh rate by dropping every fifth frame. Reduces video smoothness, but avoids screen tearing on 60Hz screens.",
+ },
+ {
+ .key = "wswan_sound_sample_rate",
+ .desc = "Sample Rate",
+ },
+ { NULL }
+};
+
+me_bind_action mednafen_wswan_ctrl_actions[] =
+{
+ { "X UP ", 1 << RETRO_DEVICE_ID_JOYPAD_UP},
+ { "X DOWN ", 1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
+ { "X LEFT ", 1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
+ { "X RIGHT ", 1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
+ { "Y UP ", 1 << RETRO_DEVICE_ID_JOYPAD_R2 },
+ { "Y DOWN ", 1 << RETRO_DEVICE_ID_JOYPAD_L2 },
+ { "Y LEFT ", 1 << RETRO_DEVICE_ID_JOYPAD_L },
+ { "Y RIGHT ", 1 << RETRO_DEVICE_ID_JOYPAD_R },
+ { "A ", 1 << RETRO_DEVICE_ID_JOYPAD_A },
+ { "B ", 1 << RETRO_DEVICE_ID_JOYPAD_B },
+ { "START ", 1 << RETRO_DEVICE_ID_JOYPAD_START },
+ { "ROTATE ", 1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
+ { NULL, 0 }
+};
+
+const struct core_override_fast_forward mednafen_wswan_fast_forward = {
+ .type_key = "wswan_frameskip",
+ .type_value = "auto",
+};
+
+#define mednafen_wswan_overrides { \
+ .core_name = "mednafen_wswan", \
+ .fast_forward = &mednafen_wswan_fast_forward, \
+ .actions = mednafen_wswan_ctrl_actions, \
+ .action_size = array_size(mednafen_wswan_ctrl_actions), \
+ .options = mednafen_wswan_core_option_overrides \
+}