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 -eux | |
# Extracts and load PSX games that are distributed in .7z / .ape format. | |
# Requires : ffmpeg, perl, cdemu, ecm2bin | |
GAME_FOLDER="$1" | |
EXTRACT_FOLDER=/tmp/game | |
rm -rf "$EXTRACT_FOLDER" | |
mkdir "$EXTRACT_FOLDER" | |
cp -rf "$GAME_FOLDER"/* "$EXTRACT_FOLDER" |