Advertisement
Guest User

Script to verify GameCube ISOs using redump.org

a guest
Aug 28th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | Source Code | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Please wait, this may take a while..."
  4. for file in ./*.iso
  5. do
  6.     gameId=$(head -c 4 "$file") # Game ID is an ascii string stored in the first six bytes of the header
  7.     gameSha1=$(sha1sum "$file") # Calculate SHA1 checksum for the file (would use CRC32 but that needs an extra program to be installed while sha1sum is installed by default)
  8.     redumpData=$(wget -qO- "http://redump.org/discs/quicksearch/$gameId") # Get redump.org entry for this game
  9.  
  10.     case $redumpData in
  11.         *"$gameId"*)
  12.                 echo "$file (Game ID: $gameId): Found matching checksum in redump database, this dump should be OK!"
  13.         ;;
  14.     esac
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement