home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Gamer UK 45
/
PCGAMER45.bin
/
patches
/
phantas2
/
p2dospat.exe
/
PATCH2.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-01-16
|
6KB
|
258 lines
@echo off
REM Which type of install?
:installType
cls
echo.
echo You may wish to use some hard disk space to enhance
echo game play. Choosing the 15 or 23 meg options will
echo speed up the time between room changes. Please select
echo how much hard disk space you would like to use:
echo.
echo Small: 10 megs (Required)
echo.
echo Medium: 15 megs
echo.
echo Larger: 23 megs
echo.
echo Exit: Cancel Installation
echo.
echo Enter selection (S/M/L/E)
REM pick smle small medium large noInstall
choice /c:smle /n
if errorlevel 5 goto installtype
if errorlevel 4 goto noinstall
if errorlevel 3 goto large
if errorlevel 2 goto medium
if errorlevel 1 goto small
goto noinstall
:large
cls
REM space %1: 23000 noLargespace
what k %1
if not errorlevel 23 goto noLargespace
REM godir %1:%4 cantcreate
%1:
cd %4
echo Copying files to %1:%4
echo.
echo Copying %2:ressci.lrg to %1:ressci.lrg...
%2:copymegs %2:ressci.lrg %1:ressci.lrg 23 X >nul
echo Copying %2:ressci.med to %1:ressci.med...
%2:copymegs %2:ressci.med %1:ressci.med 23 X >nul
goto smallFinish
:medium
cls
REM space %1: 15000 noMediumspace
what k %1
if not errorlevel 15 goto noMediumspace
REM godir %1:%4 cantcreate
%1:
cd %4
echo Copying files to %1:%4
echo.
echo Copying %2:ressci.med to %1:ressci.med...
%2:copymegs %2:ressci.med %1:ressci.med 10 X >nul
goto smallFinish
:small
cls
REM space %1: 10000 nospace
what k %1
if not errorlevel 10 goto nospace
REM godir %1:%4 cantcreate
%1:
cd %4
echo Copying files to %1:%4
echo.
:smallFinish
copy %2:cdcheck.bat %1:checkcd.bat
copy %2:*.drv %1:
copy %2:version %1:
copy %2:sierra.err %1:
copy %2:ressci.pat %1:
copy %2:resmdt.pat %1:
copy %2:resmap.pat %1:
copy %2:DUKDLL95.DLL %1:
copy %2:997.v56 %1:
copy %2:998.v56 %1:
copy %2:999.v56 %1:
copy %2:999.CLU %1:
copy %2:63007.CSC %1:
copy %2:64978.CSC %1:
copy %2:64990.CSC %1:
copy %2:63001.CSC %1:
copy %2:62999.CSC %1:
copy %2:4051.CSC %1:
copy %2:0.CSC %1:
REM apply the patches
REM copy %5\*.* %1:
echo.
echo Updating files for DOS version...
echo.
%5\patchit %5\p2.rtp >nul
echo.
echo Update complete.
echo.
echo @echo off >p2dos.bat
echo cd %1:%4 >>p2dos.bat
echo call CheckCD %2 >>p2dos.bat
echo %1:%4\sierra %1:%4\resource.cfg >>p2dos.bat
copy p2dos.bat ..\p2dos.bat
echo cd .. >>..\p2dos.bat
echo cdSpeed=2 >>resource.cfg
echo resAUD=CD:\ >>resource.cfg
echo resSFX=CD:\ >>resource.cfg
echo resMAP=CD:\;%1:%4 >>resource.cfg
echo rescdisc=CD:\ >>resource.cfg
echo patchDir=%1:%4;CD:\patches;CD:\ >>resource.cfg
echo movieDir=CD:\duk >>resource.cfg
echo palette=CD:\duk >>resource.cfg
echo discID=RESSCI >>resource.cfg
echo CD:=%2: >>resource.cfg
REM Test for vesa support
REM godir %1:%4
%1:
cd %4
havevesa.exe
if ERRORLEVEL 1 goto novesa
goto done
REM Offer to create Universal Vesa Driver.
:novesa
cls
echo.
echo VESA support has not been detected. However you do
echo have the option of constructing a universal VESA
echo driver.
echo.
echo Creating the universal VESA driver will not work
echo for every computer system and/or video card. If
echo this function fails, you may have to contact your
echo video card manufacturer for a VESA driver that will
echo work for you. Please consult the README file for
echo more information.
echo.
echo Would you like to attempt this now? (Y/N)
REM pick yn univesa done
choice /n
if errorlevel 3 goto novesa
if errorlevel 2 goto done
if errorlevel 1 goto univesa
goto done
:univesa
cls
echo Warning... Performing this function may cause your computer to lock.
echo If this occurs, restart your computer, re-run the Patch install program,
echo and select NO for attempting to create the universal driver.
uvconfig.exe -gen
if exist univbe.drv goto success
cls
echo ERROR: Universal VESA driver not created.
goto done
:success
cls
echo.
echo A Universal VESA driver was successfully created.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
:done
cls
echo.
echo To play Phantasmagoria: A Puzzle of Flesh now:
echo At the DOS prompt,
echo type P2DOS and press [ENTER].
echo.
echo To play Phantasmagoria: A Puzzle of Flesh later:
echo From the directory of %1:%4,
echo type P2DOS and press [ENTER].
echo.
pause
goto end
:cantcreate
echo Unable to create directory %1:%4
pause
set patcherr=error creating install directory.
goto end
:nospace
cls
echo.
echo There is not enough space on %1: to install.
echo A minimum of 10 Megabytes of disk space is necessary in
echo order to install the game.
echo.
pause
set patcherr=need at least 10mb on the hard drive.
goto end
:noMediumspace
cls
echo.
echo There is not enough space on %1: to install.
echo At least 15 Megabytes of disk space is necessary in
echo order to install the game.
echo.
pause
set patcherr=need 15mb for medium install.
goto end
:noLargespace
cls
echo.
echo There is not enough space on %1: to install.
echo At least 23 Megabytes of disk space is necessary in
echo order to install the game.
echo.
pause
set patcherr=need 23mb for large install.
goto end
:noInstall
cls
patcherr=user_aborted
goto end
:end
rem -----------
set p2instdir=
set p2destdrive=
set p2sourcedrive=
set p2destpath=
set patcherr=
rem -----------