This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure you have bbe (binary block editor) installed. | |
# Run this from inside the Outlaws install directory. | |
files_to_patch=( | |
glide2x.dll | |
glide3x.dll | |
glide.dll | |
lecaur3d.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source="$1" | |
source_size=$(stat -c %s "$source") | |
offsets=( $(grep --only-matching --byte-offset --binary --text Creative "$source" | cut -d : -f 1) ) | |
# setting the last offset to the size of the file | |
offsets[${#offsets[@]}]=$source_size | |
for ((i = 0; i < $(( ${#offsets[@]} - 1 )); i++)); do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $1 - exe part of the archive | |
# Note: | |
# Game ID can also be obtained as | |
# game_id=$(curl -s -o- "$gog_game_url" | pcregrep --buffer-size 1M -o1 "addToCart\('/cart/add/(\d+)'\)") | |
rar_header='526172211a07' |
NewerOlder