Mednafen bugfixes

This commit is contained in:
asoderq/sydarn(2) 2023-11-05 15:17:52 +01:00 committed by fewtarius
parent 453b267634
commit ec4420a02f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
7 changed files with 76 additions and 22454 deletions

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,7 @@
affinity.cd 0
;Main emulation thread CPU affinity mask.
affinity.emu 0
affinity.emu 0x3
;Video blitting thread CPU affinity mask.
affinity.video 0
@ -1146,10 +1146,10 @@ md.input.port1.gamepad6.b joystick @GUID1@ @DEVICE_BTN_SOUTH@
md.input.port1.gamepad6.c joystick @GUID1@ @DEVICE_BTN_EAST@
;md, Virtual Port 1, 6-Button Gamepad: DOWN ↓
md.input.port1.gamepad6.down joystick @GUID1@ @DEVICE_BTN_DOWN@
md.input.port1.gamepad6.down joystick @GUID1@ @DEVICE_BTN_DPAD_DOWN@
;md, Virtual Port 1, 6-Button Gamepad: LEFT ←
md.input.port1.gamepad6.left joystick @GUID1@ @DEVICE_BTN_LEFT@
md.input.port1.gamepad6.left joystick @GUID1@ @DEVICE_BTN_DPAD_LEFT@
;md, Virtual Port 1, 6-Button Gamepad: Mode
md.input.port1.gamepad6.mode joystick @GUID1@ @DEVICE_BTN_SELECT@
@ -1173,13 +1173,13 @@ md.input.port1.gamepad6.rapid_y
md.input.port1.gamepad6.rapid_z
;md, Virtual Port 1, 6-Button Gamepad: RIGHT →
md.input.port1.gamepad6.right joystick @GUID1@ @DEVICE_BTN_WEST@
md.input.port1.gamepad6.right joystick @GUID1@ @DEVICE_BTN_DPAD_RIGHT@
;md, Virtual Port 1, 6-Button Gamepad: Start
md.input.port1.gamepad6.start joystick @GUID1@ @DEVICE_BTN_START@
;md, Virtual Port 1, 6-Button Gamepad: UP ↑
md.input.port1.gamepad6.up joystick @GUID1@ @DEVICE_BTN_UP@
md.input.port1.gamepad6.up joystick @GUID1@ @DEVICE_BTN_DPAD_UP@
;md, Virtual Port 1, 6-Button Gamepad: X
md.input.port1.gamepad6.x joystick @GUID1@ @DEVICE_BTN_TL@
@ -6021,7 +6021,7 @@ snes_faust.affinity.msu1.audio 0
snes_faust.affinity.msu1.data 0
;PPU rendering thread CPU affinity mask.
snes_faust.affinity.ppu 0
snes_faust.affinity.ppu 0xc
;Correct aspect ratio.
snes_faust.correct_aspect 1
@ -6756,7 +6756,7 @@ vb.debugger.memcharenc shift_jis
vb.default_color 0xF0F0F0
;Disable parallax for BG and OBJ rendering.
vb.disable_parallax 1
vb.disable_parallax 0
;Enable (automatic) usage of this module.
vb.enable 1
@ -9879,9 +9879,9 @@ ss.input.port1.3dpad.b joystick @GUID1@ @DEVICE_BTN_SOUTH@
ss.input.port1.3dpad.c joystick @GUID1@ @DEVICE_BTN_TR@
ss.input.port1.3dpad.down joystick @GUID1@ @DEVICE_BTN_DOWN@
ss.input.port1.3dpad.down joystick @GUID1@ @DEVICE_BTN_DPAD_DOWN@
ss.input.port1.3dpad.left joystick @GUID1@ @DEVICE_BTN_LEFT@
ss.input.port1.3dpad.left joystick @GUID1@ @DEVICE_BTN_DPAD_LEFT@
ss.input.port1.3dpad.ls joystick @GUID1@ @DEVICE_BTN_TL2@ || joystick @GUID1@ @DEVICE_BTN_TL2_MINUS@
@ -9889,13 +9889,13 @@ ss.input.port1.3dpad.mode joystick
ss.input.port1.3dpad.mode.defpos analog
ss.input.port1.3dpad.right joystick @GUID1@ @DEVICE_BTN_RIGHT@
ss.input.port1.3dpad.right joystick @GUID1@ @DEVICE_BTN_DPAD_RIGHT@
ss.input.port1.3dpad.rs joystick @GUID1@ @DEVICE_BTN_TR2@ || joystick @GUID1@ @DEVICE_BTN_TR2_MINUS@
ss.input.port1.3dpad.start joystick @GUID1@ @DEVICE_BTN_START@
ss.input.port1.3dpad.up joystick @GUID1@ @DEVICE_BTN_UP@
ss.input.port1.3dpad.up joystick @GUID1@ @DEVICE_BTN_DPAD_UP@
ss.input.port1.3dpad.x joystick @GUID1@ @DEVICE_BTN_WEST@
@ -9987,19 +9987,19 @@ ss.input.port1.gamepad.b joystick @GUID1@ @DEVICE_BTN_SOUTH@
ss.input.port1.gamepad.c joystick @GUID1@ @DEVICE_BTN_TR@
ss.input.port1.gamepad.down joystick @GUID1@ @DEVICE_BTN_DOWN@
ss.input.port1.gamepad.down joystick @GUID1@ @DEVICE_BTN_DPAD_DOWN@
ss.input.port1.gamepad.left joystick @GUID1@ @DEVICE_BTN_LEFT@
ss.input.port1.gamepad.left joystick @GUID1@ @DEVICE_BTN_DPAD_LEFT@
ss.input.port1.gamepad.ls joystick @GUID1@ @DEVICE_BTN_TL2@
ss.input.port1.gamepad.right joystick @GUID1@ @DEVICE_BTN_RIGHT@
ss.input.port1.gamepad.right joystick @GUID1@ @DEVICE_BTN_DPAD_RIGHT@
ss.input.port1.gamepad.rs joystick @GUID1@ @DEVICE_BTN_TR2@
ss.input.port1.gamepad.start joystick @GUID1@ @DEVICE_BTN_START@
ss.input.port1.gamepad.up joystick @GUID1@ @DEVICE_BTN_UP@
ss.input.port1.gamepad.up joystick @GUID1@ @DEVICE_BTN_DPAD_UP@
ss.input.port1.gamepad.x joystick @GUID1@ @DEVICE_BTN_WEST@

View file

@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present asoderq/sydarn2 (https://github.com/asoderq)
# Copyright (C) 2023-present sydarn (https://github.com/asoderq)
PKG_NAME="mednafen"
PKG_VERSION="1.31.0-UNSTABLE"
@ -13,18 +13,17 @@ pre_configure_target() {
# unsupported modules
DISABLED_MODULES+=" --disable-apple2 \
--disable-sasplay \
--disable-sasplay \
--disable-ssfplay"
case ${DEVICE} in
RK3326)
RK3326|RK3566)
DISABLED_MODULES+=" --disable-snes \
--disable-ss \
--disable-psx"
;;
RK356*)
DISABLED_MODULES+=" --disable-ss \
--disable-psx"
S922X|RK3399|RK3588)
DISABLED_MODULES+=" --disable-ss"
;;
esac
@ -37,13 +36,10 @@ makeinstall_target() {
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
chmod +x ${INSTALL}/usr/bin/start_mednafen.sh
chmod +x ${INSTALL}/usr/bin/mednafen_gen_config.sh
mkdir -p ${INSTALL}/usr/config/${PKG_NAME}
if [ -d ${PKG_DIR}/config/${DEVICE} ]; then
cp ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/${PKG_NAME}
else
cp ${PKG_DIR}/config/common/* ${INSTALL}/usr/config/${PKG_NAME}
fi
cp ${PKG_DIR}/config/common/* ${INSTALL}/usr/config/${PKG_NAME}
}
post_install() {

View file

@ -51,9 +51,10 @@ DEVICE_BTN_AR_RIGHT="abs_2+"
for CONTROL in DEVICE_BTN_TL2 DEVICE_BTN_TR2 DEVICE_BTN_DPAD_UP \
DEVICE_BTN_DPAD_DOWN DEVICE_BTN_DPAD_LEFT \
DEVICE_BTN_DPAD_RIGHT DEVICE_BTN_TL2 \
MINUS DEVICE_BTN_TR2_MINUS DEVICE_BTN_AL_DOWN \
DEVICE_BTN_AL_UP DEVICE_BTN_AL_LEFT DEVICE_BTN_AL_RIGHT \
DEVICE_BTN_AR_DOWN DEVICE_BTN_AR_UP DEVICE_BTN_AR_LEFT
DEVICE_BTN_TR2_MINUS DEVICE_BTN_AL_DOWN DEVICE_BTN_AL_UP \
DEVICE_BTN_AL_LEFT DEVICE_BTN_AL_RIGHT \
DEVICE_BTN_AR_DOWN DEVICE_BTN_AR_UP DEVICE_BTN_AR_LEFT \
DEVICE_BTN_TL2_MINUS DEVICE_BTN_TR2_MINUS
do
sed -i -e "s/@${CONTROL}@/${!CONTROL}/g" $MEDNAFEN_HOME/mednafen.cfg
done

View file

@ -5,7 +5,7 @@
. /etc/profile
export MEDNAFEN_HOME=/storage/.config/mednafen
export MEDNAFEN_CONFIG=/usr/config/mednafen.cfg
export MEDNAFEN_CONFIG=/usr/config/mednafen/mednafen.cfg
if [ ! -d "$MEDNAFEN_HOME" ]
then

View file

@ -164,6 +164,7 @@
</features>
</core>
<core name="wsswan"/>
<core name="psx"/>
</cores>
</emulator>
<emulator name="mupen64plus">

View file

@ -33,7 +33,7 @@ case "${DEVICE}" in
AMD64)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="lutris-wine"
PKG_EMUS+=" amiberry cemu-sa citra-sa dolphin-sa duckstation-sa melonds-sa minivmacsa mupen64plus-sa kronos-sa \
nanoboyadvance-sa pcsx2-sa primehack rpcs3-sa ryujinx-sa scummvmsa vita3k-sa xemu-sa yuzu-sa"
nanoboyadvance-sa pcsx2-sa primehack rpcs3-sa ryujinx-sa scummvmsa vita3k-sa xemu-sa yuzu-sa mednafen"
LIBRETRO_CORES+=" beetle-psx-lr bsnes-hd-lr citra-lr desmume-lr dolphin-lr flycast-lr lrps2-lr mame-lr \
play-lr"
;;
@ -68,7 +68,7 @@ case "${DEVICE}" in
RK3326*)
[ "${ENABLE_32BIT}" == "true" ] && EMUS_32BIT="flycast-lr desmume-lr gpsp-lr pcsx_rearmed-lr"
PKG_DEPENDS_TARGET+=" common-shaders glsl-shaders"
PKG_EMUS+=" amiberry drastic-sa mupen64plus-sa nanoboyadvance-sa scummvmsa yabasanshiro-sa portmaster"
PKG_EMUS+=" amiberry drastic-sa mupen64plus-sa nanoboyadvance-sa scummvmsa yabasanshiro-sa portmaster mednafen"
LIBRETRO_CORES+=" uae4arm flycast-lr"
PKG_RETROARCH+=" retropie-shaders"
;;
@ -358,7 +358,7 @@ makeinstall_target() {
add_emu_core famicom retroarch quicknes false
add_emu_core famicom retroarch mesen false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core famicom mednafen nes false
;;
esac
@ -369,7 +369,7 @@ makeinstall_target() {
add_emu_core fds retroarch fceumm false
add_emu_core fds retroarch quicknes false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core fds mednafen nes false
;;
esac
@ -405,7 +405,7 @@ makeinstall_target() {
add_emu_core gb retroarch mgba false
add_emu_core gb retroarch vbam false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gb mednafen gb false
;;
esac
@ -419,7 +419,7 @@ makeinstall_target() {
add_emu_core gbh retroarch mgba false
add_emu_core gbh retroarch vbam false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gbh mednafen gb false
;;
esac
@ -444,7 +444,7 @@ makeinstall_target() {
;;
esac
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gba mednafen gba false
;;
esac
@ -457,7 +457,7 @@ makeinstall_target() {
add_emu_core gbah retroarch vba_next false
add_emu_core gbah retroarch beetle_gba false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gbah mednafen gba false
;;
esac
@ -471,7 +471,7 @@ makeinstall_target() {
add_emu_core gbc retroarch mgba false
add_emu_core gbc retroarch vbam false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gbc mednafen gb false
;;
esac
@ -485,7 +485,7 @@ makeinstall_target() {
add_emu_core gbch retroarch mgba false
add_emu_core gbch retroarch vbam false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gbch mednafen gb false
;;
esac
@ -546,7 +546,7 @@ makeinstall_target() {
add_emu_core gamegear retroarch picodrive false
add_emu_core gamegear retroarch smsplus false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core gamegear mednafen gg false
;;
esac
@ -558,7 +558,7 @@ makeinstall_target() {
add_emu_core ggh retroarch picodrive false
add_emu_core ggh retroarch smsplus false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core ggh mednafen gg false
;;
esac
@ -580,7 +580,7 @@ makeinstall_target() {
add_emu_core atarilynx retroarch handy true
add_emu_core atarilynx retroarch beetle_lynx false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core atarilynx mednafen lynx false
;;
esac
@ -605,7 +605,7 @@ makeinstall_target() {
add_emu_core megadrive-japan retroarch genesis_plus_gx_wide false
add_emu_core megadrive-japan retroarch picodrive
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core megadrive-japan mednafen md false
;;
esac
@ -620,7 +620,7 @@ makeinstall_target() {
add_emu_core snesmsu1 retroarch snes9x true
add_emu_core snesmsu1 retroarch beetle_supafaust false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core snesmsu1 mednafen snes_faust false
;;
esac
@ -680,7 +680,7 @@ makeinstall_target() {
add_emu_core ngp retroarch beetle_ngp true
add_emu_core ngp retroarch race false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core ngp mednafen ngp false
;;
esac
@ -690,7 +690,7 @@ makeinstall_target() {
add_emu_core ngpc retroarch beetle_ngp true
add_emu_core ngpc retroarch race false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core ngpc mednafen ngp false
;;
esac
@ -740,7 +740,7 @@ makeinstall_target() {
add_emu_core nes retroarch quicknes false
add_emu_core nes retroarch mesen false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core nes mednafen nes false
;;
esac
@ -752,7 +752,7 @@ makeinstall_target() {
add_emu_core nesh retroarch quicknes false
add_emu_core nesh retroarch mesen false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core nesh mednafen nesh false
;;
esac
@ -779,7 +779,7 @@ makeinstall_target() {
add_emu_core pcengine retroarch beetle_pce false
add_emu_core pcengine retroarch beetle_supergrafx false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core pcengine mednafen pce false
add_emu_core pcengine mednafen pce_fast false
;;
@ -791,7 +791,7 @@ makeinstall_target() {
add_emu_core pcenginecd retroarch beetle_pce false
add_emu_core pcenginecd retroarch beetle_supergrafx false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core pcenginecd mednafen pce false
add_emu_core pcenginecd mednafen pce_fast false
;;
@ -801,7 +801,7 @@ makeinstall_target() {
### NEC PC-FX
add_emu_core pcfx retroarch beetle_pcfx true
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core pcfx mednafen pcfx false
;;
esac
@ -817,6 +817,7 @@ makeinstall_target() {
AMD64)
add_emu_core psx retroarch beetle_psx true
add_emu_core psx duckstation duckstation-sa false
add_emu_core psx mednafen psx false
;;
S922X*)
add_emu_core psx retroarch pcsx_rearmed true
@ -844,6 +845,7 @@ makeinstall_target() {
RK3326)
add_emu_core psx retroarch pcsx_rearmed32 true
add_emu_core psx retroarch pcsx_rearmed false
add_emu_core psx mednafen psx false
;;
esac
add_emu_core psx retroarch duckstation false
@ -933,7 +935,7 @@ makeinstall_target() {
add_emu_core genesis retroarch genesis_plus_gx_wide false
add_emu_core genesis retroarch picodrive false
case ${DEVICE} in
RK3399)
RK3399|AMD64)
add_emu_core genesis mednafen md false
;;
esac
@ -944,7 +946,7 @@ makeinstall_target() {
add_emu_core genh retroarch genesis_plus_gx_wide false
add_emu_core genh retroarch picodrive false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core genh mednafen md false
;;
esac
@ -956,7 +958,7 @@ makeinstall_target() {
add_emu_core mastersystem retroarch picodrive false
add_emu_core mastersystem retroarch smsplus false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core mastersystem mednafen sms false
;;
esac
@ -967,7 +969,7 @@ makeinstall_target() {
add_emu_core megadrive retroarch genesis_plus_gx_wide false
add_emu_core megadrive retroarch picodrive false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core megadrive mednafen md false
;;
esac
@ -990,7 +992,7 @@ makeinstall_target() {
esac
add_emu_core saturn retroarch beetle_saturn false
case ${DEVICE} in
RK3399)
AMD64)
add_emu_core saturn mednafen ss false
;;
esac
@ -1001,7 +1003,7 @@ makeinstall_target() {
AMD64|S922X*|RK35*)
add_emu_core st-v retroarch beetle_saturn true
;;
RK3399)
RK3399|AMD64)
add_emu_core st-v retroarch beetle_saturn true
add_emu_core st-v mednafen ss false
;;
@ -1039,7 +1041,7 @@ makeinstall_target() {
add_emu_core supergrafx retroarch beetle_supergrafx
add_emu_core supergrafx retroarch beetle_pce
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core supergrafx mednafen pce false
add_emu_core supergrafx mednafen pce_fast false
;;
@ -1056,10 +1058,13 @@ makeinstall_target() {
add_emu_core snes retroarch bsnes_mercury_performance false
add_emu_core snes retroarch bsnes_hd_beta false
case ${DEVICE} in
RK3399)
RK3399|AMD64)
add_emu_core snes mednafen snes_faust false
add_emu_core snes mednafen snes false
;;
RK3326)
add_emu_core snes mednafen snes_faust false
;;
esac
add_es_system snes
@ -1073,10 +1078,13 @@ makeinstall_target() {
add_emu_core snesh retroarch bsnes_mercury_performance false
add_emu_core snesh retroarch bsnes_hd_beta false
case ${DEVICE} in
RK3399)
RK3399|AMD64)
add_emu_core snesh mednafen snes false
add_emu_core snesh mednafen snes_faust false
;;
RK3326)
add_emu_core snes mednafen snes_faust false
;;
esac
add_es_system snesh
@ -1090,10 +1098,13 @@ makeinstall_target() {
add_emu_core sfc retroarch bsnes_mercury_performance false
add_emu_core sfc retroarch bsnes_hd_beta false
case ${DEVICE} in
RK3399)
RK3399|AMD64)
add_emu_core sfc mednafen snes false
add_emu_core sfc mednafen snes_faust false
;;
RK3326)
add_emu_core snes mednafen snes_faust false
;;
esac
add_es_system sfc
@ -1121,7 +1132,7 @@ makeinstall_target() {
add_emu_core tg16 retroarch beetle_pce false
add_emu_core tg16 retroarch beetle_supergrafx false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core tg16 mednafen pce false
add_emu_core tg16 mednafen pce_fast false
;;
@ -1133,7 +1144,7 @@ makeinstall_target() {
add_emu_core tg16cd retroarch beetle_pce false
add_emu_core tg16cd retroarch beetle_supergrafx false
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core tg16cd mednafen pce false
add_emu_core tg16cd mednafen pce_fast false
;;
@ -1155,7 +1166,7 @@ makeinstall_target() {
### Nintendo VirtualBoy
add_emu_core virtualboy retroarch beetle_vb true
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core virtualboy mednafen vb false
;;
esac
@ -1164,7 +1175,7 @@ makeinstall_target() {
### Bandai Wonderswan
add_emu_core wonderswan retroarch beetle_wswan true
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core wonderswan mednafen wswan false
;;
esac
@ -1173,7 +1184,7 @@ makeinstall_target() {
### Bandai Wonderswan Color
add_emu_core wonderswancolor retroarch beetle_wswan true
case ${DEVICE} in
RK3399)
RK3399|AMD64|RK3326)
add_emu_core wonderswancolor mednafen wswan false
;;
esac