From 8d1b6bf23b08ad442d3fe646d62a319098575b66 Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 8 Jul 2026 23:55:41 +0200 Subject: [PATCH] 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. --- configs/releng/airootfs/usr/local/bin/fws-gameboot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/releng/airootfs/usr/local/bin/fws-gameboot b/configs/releng/airootfs/usr/local/bin/fws-gameboot index acac562..a549d67 100644 --- a/configs/releng/airootfs/usr/local/bin/fws-gameboot +++ b/configs/releng/airootfs/usr/local/bin/fws-gameboot @@ -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.