enriquelira

cue maker for psx .bin files

Jun 1st, 2020
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/bin/bash
  2. #this shell script generate a .cue file used by retroarch
  3. #Created by Paulo Lira (enriquelira948@gmail.com)
  4. #Usage: the script take the .bin filename as unique argument.
  5. #Example: cue_maker.sh my_game.bin
  6. #Idea taken from: http://nielsbuus.dk/pg/psx_cue_maker/
  7. cd `dirname $1`
  8. NAME="$(basename `basename "$1"` .bin)"
  9. rm $NAME.cue 2>/dev/null
  10. touch $NAME.cue
  11. echo "FILE "$NAME.bin" BINARY" >> $NAME.cue
  12. echo "  TRACK 01 MODE2/2352" >> $NAME.cue
  13. echo "    INDEX 01 00:00:00" >> $NAME.cue
Add Comment
Please, Sign In to add comment