Home»Fixes»PC»RoadRash» no CD RoadRash no CD RoadRash Image gallery (0) Add an image; Contribute fixes. Road rash Submitted by sujal (not verified) on March 27. Dec 16, 2017 i dont have a cd drive but roadrash need it. I created a virtual cd drive by installing ultra iso in my pc sorry fo.
Road Rash (1994) (3DO) wine launcher. Fixes 'Could not find any CD-ROM drive' error.
Road Rash (1994) (3DO) wine launcher. Fixes 'Could not find any CD-ROM drive' error.
#!/bin/bash |
# Road Rash (1994) (3DO) wine launcher |
# Fixes 'Could not find any CD-ROM drive' error |
# NOTE: ISO-image may be any valid ISO (e.g. Ubuntu Live-CD :)) |
# Default configuration (game and image placed in different directories) |
DIR='$(cd'$( dirname '${BASH_SOURCE[0]}')'&&pwd)'# path to directory with .iso (location of this script) |
IMG=$DIR/roadrash.iso # path to .iso |
GAME_DIR='$HOME/.wine/drive_c/roadrash'# game installation directory |
GAME_EXE='ROADRASH.EXE'# basename of windows game executable |
# Alternative configuration #1 (game and image placed in same directory) |
#$( dirname '${BASH_SOURCE[0]}' )' && pwd )' |
# IMG=$DIR/roadrash.iso |
# GAME_DIR=$DIR |
# GAME_EXE='ROADRASH.EXE' |
# Alternative configuration #2 (game and image placed in same directory, but script in other) |
# GAME_DIR='$HOME/.wine/drive_c/roadrash' |
# GAME_EXE='ROADRASH.EXE' |
# DIR=$GAME_DIR |
# IMG=$DIR/roadrash.iso |
_launch() { |
cd$GAME_DIR |
wine $GAME_DIR/$GAME_EXE |
} |
if [[ `mount | grep '$IMG'` ]] ;then |
_launch |
exit 0 |
fi |
LABEL=`isoinfo -d -i $IMG| grep -Po '(?<=Volume id: ).+'` |
DEV='' |
get_device() { |
DEV=`gvfs-mount -li | grep -P -A 6 'Volume([0-9+]): $LABEL'| grep -Po '(?<= unix-device: ').+(?=')'` |
} |
get_device |
if [[ $DEV'' ]] ;then |
echo'Execute gnome-disk-image-mounter...' |
gnome-disk-image-mounter '$IMG' |
get_device |
if [[ $DEV'' ]] ;then |
echo'FAIL' |
exit 1 |
else |
echo'OK' |
fi |
fi |
echo'Mount loop device...' |
gvfs-mount -m -d '$DEV' |
if [[ `mount | grep '$IMG'`'' ]] ;then |
echo'FAIL' |
exit 1 |
else |
echo'OK' |
_launch |
fi |
# TODO: unmount |
Road Rash Cd Rom Error Cracked Windows 10
Cd-rom Error Code 39
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment