Skip to content
Permalink
Browse files

Merge pull request #2647 from Adam7288/master

fixing edge case where multiplayer is broken for dreamcast
  • Loading branch information...
joolswills committed Mar 11, 2019
2 parents 505d315 + 3d7def0 commit a161774abe2e73bc2392223a6d9a5ab4aa5d16b7
Showing with 2 additions and 2 deletions.
  1. +2 −2 scriptmodules/emulators/reicast/reicast.sh
@@ -33,7 +33,7 @@ function mapInput() {
for ev_device in /dev/input/event*; do
ev_device_num=${ev_device/\/dev\/input\/event/}
if [[ -d "/sys/class/input/event${ev_device_num}/device/js${js_device_num}" ]]; then
file[$ev_device_num]=$(grep --exclude=*.bak -rl "$configdir/dreamcast/mappings/" -e "= $(</sys/class/input/event${ev_device_num}/device/name)")
file[$ev_device_num]=$(grep --exclude=*.bak -rl -m 1 "$configdir/dreamcast/mappings/" -e "= $(</sys/class/input/event${ev_device_num}/device/name)" | tail -n 1)
if [[ -f "${file[$ev_device_num]}" ]]; then
#file[$ev_device_num]="${file[$ev_device_num]##*/}"
ev_devices[$ev_device_num]=$(</sys/class/input/event${ev_device_num}/device/name)
@@ -85,4 +85,4 @@ if [[ "$AUDIO" == "oss" ]]; then
aoss "$rootdir/emulators/reicast/bin/reicast" "${params[@]}" >/dev/null
else
"$rootdir/emulators/reicast/bin/reicast" "${params[@]}" >/dev/null
fi
fi

0 comments on commit a161774

Please sign in to comment.
You can’t perform that action at this time.