@echo off
cls
REM 
REM Check for existance of doom2.exe and doom2.wad
REM if not exist doom2.wad goto Doh
if not exist doom2.exe goto Doh
REM 
REM Check for existance of PERDITION'S GATE wads
REM 
if not exist PerdGate.wad goto error
if not exist pgdemo19.wad goto error
if not exist pgdemo18.wad goto error
if not exist pgdemo17.wad goto error
if not exist pgdemo16.wad goto error
REM 
:title2
echo 浜様様様様様様様様様郵 Perditions Gate Demo Loader  麺様様様様様様様様様様様融
echo �   �    �       �  �               �                �    �      �       �   �
echo �                                                                            �
echo �   卍朕 卍朕 卍朕 卍朕 漬� 崢卍� 漬� 崢朕 崢朕  崢�  崢朕 崢朕 崢卍� 卍朕   �
echo �   把潰 把   把泰 �  �  �    �    �  �  � �  �  喞�  � 朕 把調   �   把     �
echo �   �    伉潰 � �  伉潰 槻�   �   槻� 喞潰 �  � 喞潰  喞潰 �  �   �   伉潰   �
echo �                                                       .        Wraith    � �
echo �   �  �          �              �         �    �         �              �   �
echo 麺様様様様様様様様様様様様様様様様様用様様様様様様様様様様様様様様様様様様様郵
echo � What version of Doom2 do you have? � Version [6] - 1.666    [9] - 1.9      �
echo � * Press the Letter Correspoding to �         [7] - 1.7/1.7a                �
echo �   your correct Doom2 version.      �         [8] - 1.8      [Q] - Quit     �
echo 麺様様様様様様様様様様様様様様様様様溶様様様様様様様様様様様様様様様様様様様郵
echo � * If you don't know what version you have, go back to your prompt and run  �
echo � DOOM2.  Look at the top of the screen when DOOM2 is loading, the version   �
echo � you are running will be displayed there.                                   �
echo 塞曜僕僕様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様曜曜僕産
echo 塙 査 �          DOOM II is a trademark of id Software Inc.            � 査 娘
echo  藩癖擁様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様瞥癖夕
goto blah
:blah
choice /c:q9876
if errorlevel 5 goto six
if errorlevel 4 goto seven
if errorlevel 3 goto eight
if errorlevel 2 goto nine
if errorlevel 1 goto end
REM 
REM This routine is only invoked if choice.exe is not found.
REM It causes PERDITION'S GATE to be run without the demos loaded.
REM 
echo.
echo WARNING!! Choice.exe not found (should've been installed by DOS 6 or Windows95)
echo.
echo          PERDITION'S GATE will be loaded without the new demos
echo.
echo   If you don't start a new game within 15-30 seconds, the standard demos
echo     will begin playing.  The reason they look funny is because they
echo      where recorded on DOOM II maps, not on PERDITION'S GATE maps.
echo.
echo If you want to watch the PERDITION'S GATE demos, you need to have choice.exe
echo        installed, so that the proper version of them will be used.
echo.
echo            (Note: choice.exe comes with DOS 6.* and Windows 95)
echo.
pause
rem
rem command line to run Min installed PERDITION'S GATE without the demos.
rem 
doom2 -file perdgate.wad
goto end
REM 
REM This is the error message given in either doom2.wad or doom2.exe aren't found
REM 
:Doh
echo.
cls
echo.
echo                    Can't Find Doom2.exe or Doom2.wad!
echo.
echo       Make sure you are in the directory where you installed DOOM II
echo.
echo        (You must already have DOOM II installed to play PERDITION'S GATE)
echo.
goto end
:error
REM This is the error message given when the necessary wads aren't found
cls
echo.
echo                    Can't Find the Necessary WADS!
echo.
echo * Please check to make sure that the following are in your doom2 directory.*
echo.
echo     PerdGate.wad  PGdemo16.WAD  PGdemo17.wad  PGdemo18.WAD  PGdemo19.WAD
echo.
echo   (PGdemo1*.WAD files are in the \PG directory of the PERDITION'S GATE CD)
echo.
pause
goto end
REM 
REM routine for Min installed PG and version 1.666
REM 
:six
cls
echo Running PERDITION'S GATE with version 1.666 Demos...
doom2 -file PerdGate.wad PGdemo16.wad
goto end
REM 
REM routine for Min installed PG and version 1.7 or 1.7a
REM 
:seven
cls
echo Running PERDITION'S GATE with version 1.7 Demos...
doom2 -file PerdGate.wad PGdemo17.wad
goto end
REM 
REM routine for Min installed PG and version 1.8
REM 
:eight
cls
echo Running PERDITION'S GATE with version 1.8 Demos...
doom2 -file PerdGate.wad PGdemo18.wad
goto end
REM 
REM routine for Min installed PG and version 1.9
REM 
:nine
cls
echo Running PERDITION'S GATE with version 1.9 Demos...
doom2 -file PerdGate.wad PGdemo19.wad
goto end
:end
