Better approach at using correct wine for 32 bit games, assuming it works that is.

This commit is contained in:
Storm Dragon
2025-08-07 02:52:32 -04:00
parent 81d00ef4f2
commit e5c6798c80
2 changed files with 8 additions and 19 deletions

View File

@@ -5,6 +5,14 @@ get_bottle() {
local architecture="${1:-win64}"
architecture="${architecture/win/}"
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

View File

@@ -48,25 +48,6 @@ check_wine32() {
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
game_installer() {