Created
August 27, 2020 07:40
-
-
Save midibyte/17c46f287f33cb7a1b4018c3d7dd5e59 to your computer and use it in GitHub Desktop.
Create ISO image of PSX disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#tested on Manjaro 5.7 | |
#adapted from https://pastebin.com/TLJMAU9V | |
# this directory must already exist | |
export PSXDIR=$HOME/psxISO | |
if [ $1 -z -o $2 -n ]; | |
then | |
echo "\nERROR: Invalid usage.\n" | |
echo "\n Usage: psxrip [filename]\n" | |
echo "\n where filename is the desired name, minus extensions.\n" | |
fi | |
cd /usr/bin | |
./cdrdao read-cd --read-raw --datafile $PSXDIR/$1.bin --device /dev/sr0 --driver generic-mmc-raw $PSXDIR/$1.cue | |
bchunk $1.bin $1.cue $1.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment