Fixed a bug that would cause AGM to fail to download the nvda2speechd server if the first game installed was a 64 bit game.

This commit is contained in:
Storm Dragon 2022-08-25 00:28:18 -04:00
parent ededeeadf4
commit 70cec92593

View File

@ -503,8 +503,6 @@ winetricks() {
echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage"
fi fi
# Download or update agm's copy of winetricks # Download or update agm's copy of winetricks
winetricksPath="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager"
mkdir -p "${winetricksPath}"
if [[ ! -e "${winetricksPath}/winetricks" ]]; then if [[ ! -e "${winetricksPath}/winetricks" ]]; then
checkWinetricksUpdate="true" checkWinetricksUpdate="true"
download "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks" download "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
@ -853,6 +851,10 @@ cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf" configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
mkdir -p "${cache}" mkdir -p "${cache}"
mkdir -p "${configFile%/*}" mkdir -p "${configFile%/*}"
# Create the path for AGM's helper programs.
# Originally this was only winetricks, thus the name, and I'm too lazy to change it now.
winetricksPath="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager"
mkdir -p "${winetricksPath}"
# Load any arguments from settings.conf file # Load any arguments from settings.conf file
if [[ -r "${configFile%/*}/settings.conf" ]]; then if [[ -r "${configFile%/*}/settings.conf" ]]; then
source "${configFile%/*}/settings.conf" source "${configFile%/*}/settings.conf"