Better approach at using correct wine for 32 bit games, assuming it works that is.
This commit is contained in:
@@ -5,6 +5,14 @@ get_bottle() {
|
|||||||
local architecture="${1:-win64}"
|
local architecture="${1:-win64}"
|
||||||
architecture="${architecture/win/}"
|
architecture="${architecture/win/}"
|
||||||
export WINEPREFIX="$HOME/.local/wine${architecture}"
|
export WINEPREFIX="$HOME/.local/wine${architecture}"
|
||||||
|
|
||||||
|
# Set wine executables based on architecture
|
||||||
|
if [[ "$architecture" == "32" ]] && [[ -n "$wine32" ]]; then
|
||||||
|
export WINE="$wine32"
|
||||||
|
export WINESERVER="$wine32server"
|
||||||
|
else
|
||||||
|
unset WINE WINESERVER # Use system defaults
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Note: install_wine function removed - we now use system wine with simplified bottle management
|
# Note: install_wine function removed - we now use system wine with simplified bottle management
|
||||||
|
@@ -48,25 +48,6 @@ check_wine32() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wine function overrides for automatic architecture detection
|
|
||||||
wine() {
|
|
||||||
if [[ "$WINEPREFIX" =~ wine32 ]] && [[ -n "$wine32" ]]; then
|
|
||||||
"$wine32" "$@"
|
|
||||||
else
|
|
||||||
command wine "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
wineserver() {
|
|
||||||
if [[ "$WINEPREFIX" =~ wine32 ]] && [[ -n "$wine32server" ]]; then
|
|
||||||
"$wine32server" "$@"
|
|
||||||
else
|
|
||||||
command wineserver "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Export functions so they're available in subshells and sourced scripts
|
|
||||||
export -f wine wineserver
|
|
||||||
|
|
||||||
# Install games
|
# Install games
|
||||||
game_installer() {
|
game_installer() {
|
||||||
|
Reference in New Issue
Block a user