Skip to content

Instantly share code, notes, and snippets.

@johndrinkwater
Created November 16, 2017 20:02
Show Gist options
  • Save johndrinkwater/4299ffdfb19a3a80083c8859ad608f57 to your computer and use it in GitHub Desktop.
Save johndrinkwater/4299ffdfb19a3a80083c8859ad608f57 to your computer and use it in GitHub Desktop.
‘Some games have shipped with a Steamworks SDK redistributable older than 1.23’ → How to help with that
* Ask SteamDB for list of depots with hashes containing libsteam_api.so that they have access to (though they don’t own all games!)
* Pull down SteamworksSDK and filter the hashes by SDK release:
for commit in $(git rev-list master)
do
echo `git log -1 --pretty=format:"%s" $commit` ","
git show $commit:redistributable_bin/linux32/libsteam_api.so | sha1sum | tr '[a-z]' '[A-Z]'
git show $commit:redistributable_bin/linux64/libsteam_api.so | sha1sum | tr '[a-z]' '[A-Z]'
done > libsteam_api-versions
* mung that file into a key→value for file hash → version, for both 32+64
* clean up game list above (Steam escapement is not CSV friendly, breaks join :|)
* Work so far: https://gist.github.com/johndrinkwater/b0a93c57b0d97e697b0d17fd5ffaa866
* use GNU join to combine the lists
join -t , -o "2.2 1.2 1.3 1.4 1.5" game-list hashes > games-list.csv
* celebrate and publish https://gist.github.com/johndrinkwater/32ff6c1aea20628d9aac00c0e3299058
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment