fix(fws-gameboot): improve windows not found error messaging
Replace terse die message with user-friendly notification before the error. When Windows Boot Manager entry is not found, first notify the user with clear instructions about installing gaming Windows and checking UEFI boot entries before terminating with the technical error message.
This commit is contained in:
@@ -129,7 +129,10 @@ cmd_to_windows() {
|
||||
game="$(printf '%s' "$game" | tr '[:upper:]' '[:lower:]' | tr -cd 'a-z0-9_-')"
|
||||
[ -n "$game_req" ] && [ -z "$game" ] && warn "identifiant --game invalide après nettoyage — jeu par défaut appliqué."
|
||||
win="$(find_windows_bootnum)"
|
||||
[ -n "$win" ] || die "entrée « Windows Boot Manager » introuvable (Windows installé + entrée UEFI présente ?)"
|
||||
if [ -z "$win" ]; then
|
||||
notify_user "Windows introuvable — installe d'abord le Windows gaming (entrée de boot UEFI absente)."
|
||||
die "entrée « Windows Boot Manager » introuvable (Windows installé + entrée UEFI présente ?)"
|
||||
fi
|
||||
esp="$(find_esp)"
|
||||
|
||||
# Jeton « quel jeu lancer », lu ET CONSOMMÉ par fws-play côté Windows.
|
||||
|
||||
Reference in New Issue
Block a user