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