Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #this shell script generate a .cue file used by retroarch
- #Created by Paulo Lira (enriquelira948@gmail.com)
- #Usage: the script take the .bin filename as unique argument.
- #Example: cue_maker.sh my_game.bin
- #Idea taken from: http://nielsbuus.dk/pg/psx_cue_maker/
- cd `dirname $1`
- NAME="$(basename `basename "$1"` .bin)"
- rm $NAME.cue 2>/dev/null
- touch $NAME.cue
- echo "FILE "$NAME.bin" BINARY" >> $NAME.cue
- echo " TRACK 01 MODE2/2352" >> $NAME.cue
- echo " INDEX 01 00:00:00" >> $NAME.cue
Add Comment
Please, Sign In to add comment