Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/usr/bin/env bash # Base directory where version directories reside base_dir=. # Check if bbe is installed if ! command -v bbe &> /dev/null; then echo "Error: bbe is not installed. Please install bbe and try again." exit 1 fi # Auto-detect the latest version directory (assumes version directories match the pattern X.Y.Z.W) version_dir=$(find "$base_dir" -maxdepth 1 -type d -name "[0-9]*.[0-9]*.[0-9]*.[0-9]*" | sort -V | tail -n1) if [ -z "$version_dir" ]; then echo "No version directory found in '$base_dir'." exit 1 fi echo "Using version directory: $version_dir" cd "$version_dir" || { echo "Failed to change directory to $version_dir"; exit 1; } # Check if the DLL still contains the original pattern if ! grep -a -q $'\x12AllowsTransparency' launcher_main.dll; then echo "launcher_main.dll is already patched or does not contain the expected pattern." exit 0 fi # Backup the original file and apply the patch using bbe\nmv launcher_main.dll launcher_main.dll.bak bbe -e "s/\x12AllowsTransparency/\x09IsEnabled\x1bA\x00\x03AAAAA/" launcher_main.dll.bak > launcher_main.dll echo "Patch applied successfully."
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)