Audio Quake mostly working.
This commit is contained in:
parent
8258419f7c
commit
abcaf32ec0
@ -46,15 +46,15 @@ configure_webkit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_sound_device() {
|
set_sound_device() {
|
||||||
if ! grep -q 'set s_device' "${installPath}/Audio Quake/data/id1/config.cfg" ; then
|
if ! grep -q 'set s_device' "${installPath}/AudioQuake/data/id1/config.cfg" ; then
|
||||||
echo "set s_device hw:${cardNumber},0,0" >> "${installPath}/Audio Quake/data/id1/config.cfg"
|
echo "set s_device hw:${cardNumber},0,0" >> "${installPath}/AudioQuake/data/id1/config.cfg"
|
||||||
else
|
else
|
||||||
sed -E -i 's/set s_device/set s_device hw:${cardNumber},0,0/g' "${installPath}/Audio Quake/data/id1/config.cfg"
|
sed -E -i 's/set s_device/set s_device hw:${cardNumber},0,0/g' "${installPath}/AudioQuake/data/id1/config.cfg"
|
||||||
fi
|
fi
|
||||||
if ! grep -q 'set s_device' "${installPath}/Audio Quake/data/oq/config.cfg" ; then
|
if ! grep -q 'set s_device' "${installPath}/AudioQuake/data/oq/config.cfg" ; then
|
||||||
echo "set s_device hw:${cardNumber},0,0" >> "${installPath}/Audio Quake/data/oq/config.cfg"
|
echo "set s_device hw:${cardNumber},0,0" >> "${installPath}/AudioQuake/data/oq/config.cfg"
|
||||||
else
|
else
|
||||||
sed -E -i 's/set s_device/set s_device hw:${cardNumber},0,0/g' "${installPath}/Audio Quake/data/oq/config.cfg"
|
sed -E -i 's/set s_device/set s_device hw:${cardNumber},0,0/g' "${installPath}/AudioQuake/data/oq/config.cfg"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user