home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazin 1996 February
/
CD_02_96.BIN
/
demos
/
propin
/
custom.bat
next >
Wrap
DOS Batch File
|
1995-11-03
|
3KB
|
111 lines
@echo off
cls
if "%1"=="" goto usage
if "%2"=="" goto usage
if "%3"=="" goto usage
if "%4"=="" goto usage
goto start
:usage
echo Usage: CUSTOM resolution colours sound-frequency sound-stage
echo.
echo Screen resolution can be:
echo 640 - 640x480 screen mode
echo 800 - 800x600 screen mode
echo 1024 - 1024x768 screen mode
echo.
echo Screen colours can be:
echo 256 - 256 colour display
echo 32k - 32,768 (hi-colour) display
echo.
echo Sound frequency can be:
echo 0 - No sound card installed
echo 6 - 6,000 Hz sample frequency
echo 11 - 11,025 Hz sample frequency
echo 22 - 22,050 Hz sample frequency
echo 44 - 44,100 Hz sample frequency
echo.
echo Sound stage can be:
echo m - Mono sound
echo s - Stereo sound
echo x - Stereo sound, with left and right swapped
goto done
:start
set PP_WEB_RES=
set PP_WEB_SND=
set PP_WEB_STG=
if "%1%2"=="640256" set PP_WEB_RES=v11
if "%1%2"=="800256" set PP_WEB_RES=v21
if "%1%2"=="1024256" set PP_WEB_RES=v31
if "%1%2"=="64032k" set PP_WEB_RES=v51
if "%1%2"=="80032k" set PP_WEB_RES=v61
if "%1%2"=="102432k" set PP_WEB_RES=v71
if "%1%2"=="64032K" set PP_WEB_RES=v51
if "%1%2"=="80032K" set PP_WEB_RES=v61
if "%1%2"=="102432K" set PP_WEB_RES=v71
if "%3"=="0" set PP_WEB_SND=s
if "%3"=="6" set PP_WEB_SND=r0
if "%3"=="11" set PP_WEB_SND=r1
if "%3"=="22" set PP_WEB_SND=r2
if "%3"=="44" set PP_WEB_SND=r4
if "%4"=="m" set PP_WEB_STG=om
if "%4"=="s" set PP_WEB_STG=os
if "%4"=="x" set PP_WEB_STG=ox
if "%4"=="M" set PP_WEB_STG=om
if "%4"=="S" set PP_WEB_STG=os
if "%4"=="X" set PP_WEB_STG=ox
if "%PP_WEB_RES%"=="" echo Invalid screen mode: %1 %2
if "%PP_WEB_RES%"=="" goto usage
if "%PP_WEB_SND%"=="" echo Invalid sound frequency: %3
if "%PP_WEB_SND%"=="" goto usage
if "%PP_WEB_STG%"=="" echo Invalid sound stage: %4
if "%PP_WEB_STG%"=="" goto usage
echo Pro Pinball - The Web
echo.
echo DEMO VERSION
echo.
echo Loading custom configuration:
echo.
if "%PP_WEB_RES%"=="v11" echo Graphics: 640x480 256-colour
if "%PP_WEB_RES%"=="v21" echo Graphics: 800x600 256-colour
if "%PP_WEB_RES%"=="v31" echo Graphics: 1024x768 256-colour
if "%PP_WEB_RES%"=="v51" echo Graphics: 640x480 32K colours
if "%PP_WEB_RES%"=="v61" echo Graphics: 800x600 32K colours
if "%PP_WEB_RES%"=="v71" echo Graphics: 1024x768 32K colours
if "%PP_WEB_SND%"=="s" echo Sound: No sound card installed
if "%PP_WEB_SND%"=="r0" echo Sound: 6,000 Hz sample frequency
if "%PP_WEB_SND%"=="r1" echo Sound: 11,025 Hz sample frequency
if "%PP_WEB_SND%"=="r2" echo Sound: 22,050 Hz sample frequency
if "%PP_WEB_SND%"=="r4" echo Sound: 44,100 Hz sample frequency
if "%PP_WEB_STG%"=="om" echo Sound Stage: Mono
if "%PP_WEB_STG%"=="os" echo Sound Stage: Stereo
if "%PP_WEB_STG%"=="ox" echo Sound Stage: Stereo (swapped left and right)
echo.
echo.
echo.
pause
rem
rem Check for UNIVBE use.
rem
if exist uvesa.cfg goto useunivbe
rolling %PP_WEB_RES% %PP_WEB_SND% %PP_WEB_STG%
goto done
:useunivbe
rolling %PP_WEB_RES% %PP_WEB_SND% %PP_WEB_STG% u
:done
set PP_WEB_RES=
set PP_WEB_SND=
set PP_WEB_STG=