Merge pull request #2403 from brooksytech/dev

Runemu cleanup
This commit is contained in:
Brooksytech 2023-11-20 13:34:40 -08:00 committed by GitHub
commit 25f6d28ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,39 +302,6 @@ else
fi
fi
# Platform specific configurations
case ${PLATFORM} in
"doom")
# EXT can be wad, WAD, iwad, IWAD, pwad, PWAD or doom
EXT=${ROMNAME##*.}
# If its not a simple wad (extension .doom) read the file and parse the data
if [ ${EXT} == "doom" ]; then
dos2unix "${1}"
while IFS== read -r key value; do
if [ "$key" == "IWAD" ]; then
ROMNAME="$value"
fi
done < "${1}"
fi
;;
"quake")
# EXT can only by quake
EXT=${ROMNAME##*.}
# If its not a simple pak (extension .pak0) read the file and parse the data
if [ ${EXT} == "quake" ]; then
dos2unix "${1}"
while IFS== read -r key value; do
if [ "$key" == "PAK" ]; then
ROMNAME="$value"
fi
done < "${1}"
fi
;;
esac
### Set the performance mode for emulation
PERFORMANCE_MODE=$(get_setting "cpugovernor" "${PLATFORM}" "${ROMNAME##*/}")
${PERFORMANCE_MODE}