From cc05b931fbef395c33d4d387af1eef156a2c79cd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 5 Oct 2022 03:48:16 -0400 Subject: [PATCH] Added Shadow Line. It is commented out though because I still have to deal with the installer. If you want to play it, uncomment and when the installer pops up press enter 3 times and wait about 5 minutes, then press enter again and the game will launch. Close it and relaunch from the agm launcher. --- audiogame-manager.sh | 13 +++++++++++++ speech/clipboard_translator.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1bf176c..4729590 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -778,6 +778,9 @@ game_launcher() { if [[ "$game" =~ ^bokurano-daibouken\||bokurano-daibouken-2\| ]]; then "${0%/*}/speech/clipboard_translator.sh" play.exe & fi + if [[ "$game" =~ hadow-line ]]; then + "${0%/*}/speech/clipboard_translator.sh" play_sr.exe & + fi if [[ "$game" =~ bokurano-daibouken-3 ]]; then pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & dictPath="$(winepath "${winePath}")" @@ -1041,6 +1044,7 @@ gameList=( "Sequence Storm" #"Shades of Doom 1.2" "Shades of Doom" + #"Shadow Line" "Shooter" "Silver Dollar" "Slender Lost Vision" @@ -2429,6 +2433,15 @@ EOF wine "${cache}/sod20022.exe" /silent add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe" ;; + "Shadow Line") + export winVer="win7" + install_wine_bottle + download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" + wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- & + wineserver -w + find "${WINEPREFIX}/drive_c/Program Files" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; + add_launcher "c:\Program Files\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe" + ;; "Silver Dollar") export winVer="win7" install_wine_bottle speechsdk diff --git a/speech/clipboard_translator.sh b/speech/clipboard_translator.sh index 0aaadb2..d34a3a7 100755 --- a/speech/clipboard_translator.sh +++ b/speech/clipboard_translator.sh @@ -45,7 +45,7 @@ while pgrep -u "$USER" ^$1 &> /dev/null ; do echo "" | xclip -d "${DISPLAY:-:0}" -selection clipboard 2> /dev/null continue fi - translatedText="$(trans -b -- "$newText")" + translatedText="$(trans -no-autocorrect -b -- "$newText")" if ! [[ "${newText}" =~ ^[0-9[:punct:]]+$ ]]; then echo "${newText})==:[${translatedText}" >> "$dictionaryFile" fi