Skip to content

Instantly share code, notes, and snippets.

Last active May 4, 2022 00:56
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shmerl/4458375a3529995ed6b41b1ce1718eeb to your computer and use it in GitHub Desktop.
# Fixing Saboteur to run on CPUs with more than 4 cores.
# Thanks to jackfuste from WSGF, who found the fix.
# Make sure you have xxd installed
current_sha512=$(sha512sum "$game_binary" | cut -d ' ' -f 1)
if [[ "$current_sha512" == "$patched_sha512" ]]; then
echo "Game is already patched, nothing to do."
exit 0
elif [[ "$current_sha512" != "$gog_ver_sha512" ]]; then
echo "You have incorrect version! Aborting."
exit 1
echo "Patching..."
echo "9f56d0: eb" | xxd -r - "${game_dir}/Saboteur.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment