Update dolphin_gamecube.sh
This commit is contained in:
parent
6ecf7ca8a0
commit
b5d870b29f
@ -34,7 +34,7 @@ fi
|
|||||||
|
|
||||||
# If it is Zip/7z extract before running the Rom via Dolphin
|
# If it is Zip/7z extract before running the Rom via Dolphin
|
||||||
if [[ $extension == "zip" || $extension == "7z" ]]; then
|
if [[ $extension == "zip" || $extension == "7z" ]]; then
|
||||||
# sudo rm -rf $GAMECUBE_FOLDER/.tmp
|
# rm -rf $GAMECUBE_FOLDER/.tmp
|
||||||
7z x "$1" -o$GAMECUBE_FOLDER/.tmp
|
7z x "$1" -o$GAMECUBE_FOLDER/.tmp
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Extraction failed."
|
echo "Extraction failed."
|
||||||
@ -43,7 +43,7 @@ if [[ $extension == "zip" || $extension == "7z" ]]; then
|
|||||||
$DOLPHIN "$GAMECUBE_FOLDER/.tmp/$ROM"
|
$DOLPHIN "$GAMECUBE_FOLDER/.tmp/$ROM"
|
||||||
|
|
||||||
# Delete extracted rom after playing
|
# Delete extracted rom after playing
|
||||||
sudo rm -rf $GAMECUBE_FOLDER/.tmp
|
rm -rf $GAMECUBE_FOLDER/.tmp
|
||||||
|
|
||||||
elif [[ $extension == "iso" || $extension == "rvz" ]]; then
|
elif [[ $extension == "iso" || $extension == "rvz" ]]; then
|
||||||
$DOLPHIN "$1"
|
$DOLPHIN "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user