fant0men

playstation (redump) readme

Dec 18th, 2025
85
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Every game image in new/ comes from (playstation) redump (archive.org).
  2.  
  3. Repack Redump zips to 7z:
  4. for zip in *.zip; do bn="${zip%.zip}"; mkdir "$bn"; cd "$bn"; arch_unpack ../"${zip}" && rm ../"${zip}"; cd ..; arch_pack "${bn}.7z" "$bn" && rm -rf "$bn"; done | tee /home/lucifer/zip_2_7z_log.txt
  5.  
  6. ***
  7.  
  8. Extract playstation 2 zips, and organize extracted files/directories:
  9. recursive_extract .; find . -type f -iname "*.iso" -exec mv -n -t . {} +; find . -type d -empty -exec rm -rf {} +
  10.  
  11. ***
  12.  
  13. Strip $session numbers from directory names:
  14. regex[session]='^(.*)(-[[:digit:]]+){2}$'
  15. for fn_in in *; do if [[ ! -d $fn_in ]]; then continue; fi; if [[ $fn_in =~ ${regex[session]} ]]; then fn_out="${BASH_REMATCH[1]}"; echo "$fn_out"; fi; done
  16.  
  17. for fn_in in *; do if [[ ! -d $fn_in ]]; then continue; fi; if [[ $fn_in =~ ${regex[session]} ]]; then fn_out="${BASH_REMATCH[1]}"; echo "$fn_out"; mv -n "$fn_in" "$fn_out"; fi; done
  18.  
  19. Find duplicates:
  20. declare -A roms
  21. regex[disc]='\(Disc [[:digit:]]+\)'
  22. for fn_in in *; do fn_out="${fn_in%%(*}"; if [[ -z ${roms[${fn_out}]} ]]; then roms["${fn_out}"]=1; elif [[ $fn_in =~ ${regex[disc]} ]]; then true; else echo "$fn_out"; fi; done
  23.  
  24. ***
  25.  
  26. Redump naming scheme:
  27. '(Rev 1)' seems to be the identical release to '(v1.1)'
  28. '(Rev 2)' seems to be the identical release to '(v1.2)'
  29. etc.
  30.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment