coldReactive

webview2-workaround.sh

May 7th, 2026 (edited)
3,198
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Put this file in the same folder as the launcher.exe file for Wuthering Waves.
  4. # EG: <prefix folder>/drive_c/Program Files/Wuthering Waves/
  5.  
  6. # Base directory where version directories reside
  7. base_dir=.
  8.  
  9. # Check if bbe is installed
  10. if ! command -v bbe &> /dev/null; then
  11. echo "Error: bbe is not installed. Please install bbe and try again."
  12. exit 1
  13. fi
  14.  
  15. # Auto-detect the latest version directory (assumes version directories match the pattern X.Y.Z.W)
  16. version_dir=$(find "$base_dir" -maxdepth 1 -type d -name "[0-9]*.[0-9]*.[0-9]*.[0-9]*" | sort -V | tail -n1)
  17.  
  18. if [ -z "$version_dir" ]; then
  19. echo "No version directory found in '$base_dir'."
  20. exit 1
  21. fi
  22.  
  23. echo "Using version directory: $version_dir"
  24. cd "$version_dir" || { echo "Failed to change directory to $version_dir"; exit 1; }
  25.  
  26. # Check if the DLL still contains the original pattern
  27. if ! grep -a -q $'\x12AllowsTransparency' launcher_main.dll; then
  28. echo "launcher_main.dll is already patched or does not contain the expected pattern."
  29. exit 0
  30. fi
  31.  
  32. # Backup the original file and apply the patch using bbe
  33. mv launcher_main.dll launcher_main.dll.bak
  34. bbe -e "s/\x12AllowsTransparency/\x09IsEnabled\x1bA\x00\x03AAAAA/" launcher_main.dll.bak > launcher_main.dll
  35.  
  36. echo "Patch applied successfully."
  37.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment