mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 09:05:42 +00:00
GZDOOM: enahnced zenity errors
This commit is contained in:
parent
cd86f19b0e
commit
ba5cf403dc
|
@ -68,7 +68,10 @@ else
|
||||||
# Check if the .doom file exists
|
# Check if the .doom file exists
|
||||||
if [[ ! -e "$doom_file" ]]; then
|
if [[ ! -e "$doom_file" ]]; then
|
||||||
log "Error: .doom file not found - $doom_file"
|
log "Error: .doom file not found - $doom_file"
|
||||||
zenity --error --text="Error: .doom file not found - $doom_file"
|
zenity --error --no-wrap \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK" \
|
||||||
|
--text="File \"$doom_file\" not found. Quitting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -82,7 +85,10 @@ else
|
||||||
# If the file is not found, exit with an error
|
# If the file is not found, exit with an error
|
||||||
if [[ -z "$found_file" ]]; then
|
if [[ -z "$found_file" ]]; then
|
||||||
log "Error: File not found - $line"
|
log "Error: File not found - $line"
|
||||||
zenity --error --text="Error: File not found - $line"
|
zenity --error --no-wrap \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK" \
|
||||||
|
--text="File \"$doom_file\" not found. Quitting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -100,6 +106,3 @@ else
|
||||||
# Execute the command
|
# Execute the command
|
||||||
eval "$command"
|
eval "$command"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ask if you wish to get a more in-depth explanation
|
|
||||||
echo "Do you wish me to explain more?"
|
|
||||||
|
|
Loading…
Reference in a new issue