For Freedoom, shortened some messages that are spoken with tts. Added tts indicator for run and walk.

This commit is contained in:
stormdragon2976 2023-05-15 00:51:32 -04:00
parent ea7c3bf6b1
commit 6a48817da2

View File

@ -406,12 +406,18 @@ game_launcher() {
*doom*)
exec stdbuf -oL ${game} | stdbuf -oL grep -E \
-e '^[0-9]+\. ' \
-e '^"cl_run"' \
-e '^Game saved. ' \
-e '^A secret is revealed!$' \
-e '^MAP[0-9]*' \
-e '^Player was ' \
-e '^Please select a game wad \(or 0 to exit\):' \
-e '^You have no keys in your pocket!$' | spd-say -e
-e '^You have no keys in your pocket!$' | stdbuf -oL sed \
-e 's/MAP0\([1-9]\)/MAP\1/' \
-e 's/"cl_run" = "true"/run/' \
-e 's/"cl_run" = "false"/walk/' \
-e 's:.*/:Game saved. (:' \
| spd-say -e
;;
*"main.py")
pushd "${game%/*}"