A little more progress on refactor.

This commit is contained in:
Storm Dragon
2025-06-10 01:54:56 -04:00
parent e3df3c4485
commit da065e5835
5 changed files with 22 additions and 18 deletions

View File

@ -111,9 +111,10 @@ install_wine_bottle() {
# Set the WINE and WINESERVER environmental variables so winetricks will use the right installation.
export WINE="${wine}"
export WINESERVER="${wine}server"
# Installation paths are based on WINEARCH unless bottle is set.
if [[ ${#bottle} -gt 0 ]]; then
local bottle="${game,,}"
# Installation paths are based on WINEARCH unless game is set for custom bottle.
local bottle=""
if [[ ${#game} -gt 0 ]]; then
bottle="${game,,}"
bottle="${bottle//[[:space:]]/-}"
if [[ -d "$HOME/.local/wine/${bottle}" ]]; then
echo "$HOME/.local/wine/${bottle} exists. Please remove it before running this installer."

View File

@ -44,9 +44,3 @@ fi
git log '@{1}..' --pretty=format:'%an: %s' | tac; }
exit $?
}
# Get latest news if available
check_news
# With no arguments, open the game launcher.
if [[ $# -eq 0 ]]; then
game_launcher
fi