Started needed updates on shadow line, very much borken.

This commit is contained in:
Storm Dragon
2025-12-08 02:50:39 -05:00
parent 710d430d25
commit 20e55ddc4e

View File

@@ -1,8 +1,15 @@
download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" "https://raw.githubusercontent.com/LordLuceus/sr-english-localization/master/language_en.dat" download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" "https://raw.githubusercontent.com/LordLuceus/sr-english-localization/master/language_en.dat"
# Uses wine64 (no speech API dependency) export WINEARCH="win64" # Migrated to wine64 with WINETRICKS_FORCE=1
export winVer="win8" export winVer="win8"
install_wine_bottle install_wine_bottle
$wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- & # Add bcrypt DLL override required for Shadow Line to run
cat > /tmp/bcrypt_override.reg << 'EOF'
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"bcryptprimitives"="native,builtin"
EOF
wine regedit /tmp/bcrypt_override.reg
rm /tmp/bcrypt_override.reg
wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- &
xdotool sleep 30 key --clearmodifiers --delay=500 Return xdotool sleep 30 key --clearmodifiers --delay=500 Return
xdotool key --clearmodifiers --delay=500 Return xdotool key --clearmodifiers --delay=500 Return
xdotool key --clearmodifiers --delay=500 Return xdotool key --clearmodifiers --delay=500 Return
@@ -12,6 +19,14 @@ xdotool sleep 180 key --clearmodifiers --delay=500 Down
xdotool key --clearmodifiers --delay=500 space xdotool key --clearmodifiers --delay=500 space
xdotool key --clearmodifiers --delay=500 alt+f xdotool key --clearmodifiers --delay=500 alt+f
wineserver -w wineserver -w
# Move installation from Program Files (x86) to Program Files (game expects this path)
mv -v "${WINEPREFIX}/drive_c/Program Files (x86)/GalaxyLaboratory" "${WINEPREFIX}/drive_c/Program Files/"
# Update registry paths from (x86) to normal Program Files
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "Inno Setup: App Path" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice" /f
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "InstallLocation" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\" /f
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "QuietUninstallString" /t REG_SZ /d "\"C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\unins000.exe\" /SILENT" /f
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "UninstallString" /t REG_SZ /d "\"C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\unins000.exe\"" /f
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "Readme" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\ReadMe.html" /f
mv -v "${cache}/language_en.dat" "${WINEPREFIX}/drive_c/Program Files/GalaxyLaboratory/ShadowRine_FullVoice/SystemData/language_en.dat" mv -v "${cache}/language_en.dat" "${WINEPREFIX}/drive_c/Program Files/GalaxyLaboratory/ShadowRine_FullVoice/SystemData/language_en.dat"
add_launcher "c:\Program Files\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe" add_launcher "c:\Program Files\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe"
echo "Please set the language to English when the game opens." echo "Please set the language to English when the game opens."