Files
modorganizer2-linux-installer/step/select_game.sh
furglitch 4744a05339 Add Fallout 4 VR support
Resolves #866
2025-11-16 23:43:09 -06:00

47 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
screen_text=$( \
cat << EOF
Welcome to the Mod Organizer 2 installer!
This installer only allows Mod Organizer 2 to manage a single game.
Install one instance of Mod Organizer 2 for each game you want to manage.
Which game would you like to manage with this installation?
EOF
)
game_options=( \
"cyberpunk" "Cyberpunk 2077" \
"dragonage" "Dragon Age: Origins" \
"enderal" "Enderal: Forgotten Stories" \
"enderal_se" "Enderal: Forgotten Stories (Special Edition)" \
"fallout3" "Fallout 3" \
"fallout3_goty" "Fallout 3 - Game of the Year Edition" \
"fallout4" "Fallout 4" \
"falloutvr" "Fallout 4 VR" \
"newvegas" "Fallout: New Vegas" \
"newvegas_ru" "Fallout: New Vegas RU" \
"morrowind" "Morrowind" \
"oblivion" "Oblivion" \
"skyrim" "Skyrim" \
"skyrimspecialedition" "Skyrim Special Edition" \
"skyrimvr" "Skyrim VR" \
"starfield" "Starfield"
)
selected_game=$( \
"$dialog" \
radio \
450 "$screen_text" \
"${game_options[@]}"
)
if [ -z "$selected_game" ]; then
log_error "no game selected"
exit 1
fi
echo "$selected_game"