summaryrefslogtreecommitdiff
path: root/includes/autoinstall-includes.sh
diff options
context:
space:
mode:
authorNick Daly <myownlittlworld@hotmail.com>2009-07-02 16:28:11 -0500
committerNick Daly <myownlittlworld@hotmail.com>2009-07-02 16:28:11 -0500
commitd370a8e2a2d58d20da284683bd9262e6ca696746 (patch)
tree77f59bc70946f8ba8cb0f91c43b734a11759bb78 /includes/autoinstall-includes.sh
parentbb49604cff2511713c0dc774b0851537a1611c9b (diff)
downloadgemrb-gameinstallers-d370a8e2a2d58d20da284683bd9262e6ca696746.tar.bz2
gemrb-gameinstallers-d370a8e2a2d58d20da284683bd9262e6ca696746.zip
recommendcfg works even when starting on a disc other than 1.
Diffstat (limited to 'includes/autoinstall-includes.sh')
-rw-r--r--includes/autoinstall-includes.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh
index 1e9c95d..0cd3754 100644
--- a/includes/autoinstall-includes.sh
+++ b/includes/autoinstall-includes.sh
@@ -40,7 +40,7 @@ function query
function recommendcfg
{
- # usage: recommendcfg [numofcds]
+ # usage: recommendcfg [numofcds] [startCd]
if [ "$1" ]; then
NUMOFCDS="$1"
@@ -48,23 +48,29 @@ function recommendcfg
NUMOFCDS=1
fi
+ if [ "$2" ]; then
+ STARTCD="$2"
+ else
+ STARTCD=1
+ fi
+
echo
echo "To play the game with GemRB, you will need to add the following"
echo "lines to your GemRB.cfg file:"
echo
LINE="GamePath=$TARGETDIR"; echo $LINE
if [ $FULLINSTALL -eq 1 ]; then
- for CDNUMBER in $(seq $NUMOFCDS); do
+ for CDNUMBER in $(seq $startCd $(($NUMOFCDS+$startCd-1))); do
if [ -d "${TARGETDIR}/cd${CDNUMBER}" ]; then
LINE="CD${CDNUMBER}=${TARGETDIR}/cd${CDNUMBER}"
else
- LINE="CD$CDNUMBER=$TARGETDIR"
+ LINE="CD${CDNUMBER}=${TARGETDIR}"
fi
echo $LINE
done
echo "GameOnCD=0"
else
- for CDNUMBER in $(seq $NUMOFCDS); do
+ for CDNUMBER in $(seq $startCd $(($NUMOFCDS+$startCd-1))); do
LINE="CD$CDNUMBER=$CDMOUNT/cd$CDNUMBER"
echo $LINE
done