From d802b95131c53258bae55fe04db2be648b0c6c55 Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 26 Jul 2023 15:17:25 +0000 Subject: Adds mednafen_ngp, mednafen_wswan, and stella2014 cores --- overrides/mednafen_wswan.h | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 overrides/mednafen_wswan.h (limited to 'overrides/mednafen_wswan.h') 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 \ +} -- cgit v1.2.3