diff --git a/linux-game-manager.sh b/linux-game-manager.sh index f8554a9..0d643f4 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -377,6 +377,24 @@ game_installer() { --clear \ --no-tags \ --menu "Please select a game to install" 0 0 0 "${menuList[@]}" --stdout)" + # Handle selection + if [[ -n "$game" ]]; then + if [[ "$game" == "Donate" ]]; then + open_url "https://ko-fi.com/stormux" + exit 0 + fi + # Convert game name to filename format + local installScript="${0%/*}/.install/${game}.sh" + # Check if install script exists + if [[ -f "$installScript" ]]; then + # Source and execute the install script + source "$installScript" + else + dialog --backtitle "Game Installer" \ + --msgbox "Installation script not found for ${game}" -1 -1 + exit 1 + fi + fi exit 0 }