aboutsummaryrefslogtreecommitdiff
path: root/overrides
diff options
context:
space:
mode:
authorneonloop2023-07-26 15:17:25 +0000
committerneonloop2023-07-26 15:17:25 +0000
commitd802b95131c53258bae55fe04db2be648b0c6c55 (patch)
tree0ed652287551f42bac47fa01567c32550fe9540b /overrides
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')
-rw-r--r--overrides/mednafen_ngp.h24
-rw-r--r--overrides/mednafen_wswan.h65
-rw-r--r--overrides/stella2014.h62
3 files changed, 151 insertions, 0 deletions
diff --git a/overrides/mednafen_ngp.h b/overrides/mednafen_ngp.h
new file mode 100644
index 0000000..60da046
--- /dev/null
+++ b/overrides/mednafen_ngp.h
@@ -0,0 +1,24 @@
+#include "overrides.h"
+
+static const struct core_override_option mednafen_ngp_core_option_overrides[] = {
+ { NULL }
+};
+
+me_bind_action mednafen_ngp_ctrl_actions[] =
+{
+ { "UP ", 1 << RETRO_DEVICE_ID_JOYPAD_UP},
+ { "DOWN ", 1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
+ { "LEFT ", 1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
+ { "RIGHT ", 1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
+ { "A ", 1 << RETRO_DEVICE_ID_JOYPAD_B },
+ { "B ", 1 << RETRO_DEVICE_ID_JOYPAD_A },
+ { "OPTION ", 1 << RETRO_DEVICE_ID_JOYPAD_START },
+ { NULL, 0 }
+};
+
+#define mednafen_ngp_overrides { \
+ .core_name = "mednafen_ngp", \
+ .actions = mednafen_ngp_ctrl_actions, \
+ .action_size = array_size(mednafen_ngp_ctrl_actions), \
+ .options = mednafen_ngp_core_option_overrides \
+}
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 \
+}
diff --git a/overrides/stella2014.h b/overrides/stella2014.h
new file mode 100644
index 0000000..c6e5682
--- /dev/null
+++ b/overrides/stella2014.h
@@ -0,0 +1,62 @@
+#include "overrides.h"
+
+static const struct core_override_option stella2014_core_option_overrides[] = {
+ {
+ .key = "stella2014_color_depth",
+ .desc = "Color Depth",
+ .info = "Specifies number of colors to display on-screen. 24-bit may increase performance overheads on some platforms. Requires restart."
+ },
+ {
+ .key = "stella2014_mix_frames",
+ .info = "Simulates CRT phosphor ghosting effects. May be used to alleviate screen flicker when games toggle sprites on alternate frames.",
+ },
+ {
+ .key = "stella2014_paddle_digital_sensitivity",
+ .desc = "Paddle Sensitivity",
+ },
+ {
+ .key = "stella2014_paddle_analog_sensitivity",
+ .blocked = true,
+ },
+ {
+ .key = "stella2014_paddle_analog_response",
+ .blocked = true,
+ },
+ {
+ .key = "stella2014_paddle_analog_deadzone",
+ .blocked = true,
+ },
+ {
+ .key = "stella2014_stelladaptor_analog_sensitivity",
+ .blocked = true,
+ },
+ {
+ .key = "stella2014_stelladaptor_analog_center",
+ .blocked = true,
+ },
+ { NULL }
+};
+
+me_bind_action stella2014_ctrl_actions[] =
+{
+ { "UP ", 1 << RETRO_DEVICE_ID_JOYPAD_UP},
+ { "DOWN ", 1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
+ { "LEFT ", 1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
+ { "RIGHT ", 1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
+ { "L DIFF A ", 1 << RETRO_DEVICE_ID_JOYPAD_L },
+ { "R DIFF A ", 1 << RETRO_DEVICE_ID_JOYPAD_R },
+ { "L DIFF B ", 1 << RETRO_DEVICE_ID_JOYPAD_L2 },
+ { "R DIFF B ", 1 << RETRO_DEVICE_ID_JOYPAD_R2 },
+ { "FIRE ", 1 << RETRO_DEVICE_ID_JOYPAD_B },
+ { "PDL FIRE ", 1 << RETRO_DEVICE_ID_JOYPAD_Y },
+ { "SELECT ", 1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
+ { "RESET ", 1 << RETRO_DEVICE_ID_JOYPAD_START },
+ { NULL, 0 }
+};
+
+#define stella2014_overrides { \
+ .core_name = "stella2014", \
+ .actions = stella2014_ctrl_actions, \
+ .action_size = array_size(stella2014_ctrl_actions), \
+ .options = stella2014_core_option_overrides \
+}