Moved the check for wine for FEXLoader to the right place. Oops.

This commit is contained in:
Storm Dragon 2024-12-12 22:12:55 -05:00
parent e017284d80
commit 72dcf570ad

View File

@ -566,11 +566,7 @@ install_wine() {
fi fi
# Figure out wineInstallationPath # Figure out wineInstallationPath
wineInstallationPath="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/wine_$2/$1" wineInstallationPath="${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/wine_$2/$1"
wine="${wineInstallationPath}/bin/wine" export wine="${wineInstallationPath}/bin/wine"
if [[ "$(uname -m)" == "aarch64" ]]; then
wine="FEXLoader -- /usr/bin/wine"
fi
export wine
# If the path exists, wine should already be installed. # If the path exists, wine should already be installed.
# Just make sure we didn't wind up with a empty directory for some reason # Just make sure we didn't wind up with a empty directory for some reason
rmdir "${wineInstallationPath}" 2> /dev/null rmdir "${wineInstallationPath}" 2> /dev/null
@ -1345,6 +1341,7 @@ gameList=(
# Make sure the minimum of curl, sox, wine, and winetricks are installed or fex-emu on aarch64 # Make sure the minimum of curl, sox, wine, and winetricks are installed or fex-emu on aarch64
if [[ "$(uname -m)" == "aarch64" ]]; then if [[ "$(uname -m)" == "aarch64" ]]; then
minimumDependencies=("FEXLoader") minimumDependencies=("FEXLoader")
wine="FEXLoader -- /usr/bin/wine"
else else
minimumDependencies=("curl" "sox" "wine") minimumDependencies=("curl" "sox" "wine")
fi fi