home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 1 / ClassicFond01.iso / role-pla / dark_sun.zip / SOUND.BAT < prev    next >
DOS Batch File  |  1993-08-31  |  3KB  |  131 lines

  1. @echo off
  2.  
  3. rem Darksun, The Shattered Lands...
  4. rem
  5. rem This is the audio installer batch file shell to install the TSR's for
  6. rem the General Midi sound cards that require TSR's
  7.  
  8. rem Detect card
  9.  
  10. @echo off
  11.  
  12. IF "%ULTRADIR%"=="" goto CHECK_ARIA
  13. GOTO GRAVIS
  14.  
  15. :CHECK_ARIA
  16. IF "%ARIA%"=="" goto NO_TSR
  17. goto ARIA
  18.  
  19. rem Detect the Gravis Software Revision and Install the Gravis TSR
  20.  
  21. :GRAVIS
  22.  
  23. IF NOT EXIST %ULTRADIR%\midi\ACPIANO.PAT GOTO OLD_REVISION
  24.  
  25. IF EXIST %ULTRADIR%\midi\HONKY.PAT GOTO V206A
  26.  
  27. copy UM200.ini ssi1.ini  > NUL
  28. if not exist ssi1.ini goto G_BADCOPY
  29.  
  30. GOTO G_INS_TSR
  31.  
  32. :V206A
  33. IF NOT EXIST %ULTRADIR%\midi\TREMSTR.PAT GOTO V206
  34. IF NOT EXIST %ULTRADIR%\midi\CHARANG.PAT GOTO V206
  35. IF NOT EXIST %ULTRADIR%\midi\ECHOVOX.PAT GOTO V206
  36.  
  37. copy UM206A.INI ssi1.ini  > NUL
  38. if not exist ssi1.ini goto G_BADCOPY
  39. goto G_INS_TSR
  40.  
  41. :V206
  42.  
  43. copy UM206.INI ssi1.ini > NUL
  44. if not exist ssi1.ini goto G_BADCOPY
  45. goto G_INS_TSR
  46.  
  47. :G_BADCOPY
  48. cls
  49. echo ╔═════════════════════════════════════════════════════╗
  50. echo ║  Gravis UltraMID Installation Error: 1              ║
  51. echo ╠═════════════════════════════════════════════════════╣
  52. echo ║                                                     ║
  53. echo ║  ERROR: Couldn't Copy File Needed for Gravis        ║
  54. echo ║         Native Mode Operation...                    ║
  55. echo ║                                                     ║
  56. echo ║  Another 10k of Disk Space is Required...           ║
  57. echo ║                                                     ║
  58. echo ╚═════════════════════════════════════════════════════╝
  59. pause
  60. GOTO NO_GUS
  61.  
  62. :OLD_REVISION
  63. cls
  64. echo ╔═════════════════════════════════════════════════════╗
  65. echo ║  Gravis UltraMID Installation Error: 2              ║
  66. echo ╠═════════════════════════════════════════════════════╣
  67. echo ║                                                     ║
  68. echo ║  ERROR: UltraMID TSR is not Supported by Revisions  ║
  69. echo ║         of the Gravis Software Less Then 2.00       ║
  70. echo ║                                                     ║
  71. echo ║         Contact Gravis to Obtain an Update of       ║
  72. echo ║         Their Software...                           ║
  73. echo ║                                                     ║
  74. echo ║          Voice (604) 431-5020                       ║
  75. echo ║          Fax   (604) 431-5155                       ║
  76. echo ║          BBS   (604) 431-5927 V32bis                ║
  77. echo ║                                                     ║
  78. echo ║          Compuserve: GO PCVENB (71333,350)          ║
  79. echo ║          FidoNET: 1:153/978                         ║
  80. echo ║          InterNET EMail: tech@gravis.com            ║
  81. echo ║          SBCNET: 13:900/3                           ║
  82. echo ║                                                     ║
  83. echo ╚═════════════════════════════════════════════════════╝
  84. pause
  85. GOTO NO_GUS
  86.  
  87. :G_INS_TSR
  88. lh ultramid -nssi1.ini -q
  89. IF ERRORLEVEL 1 GOTO NO_GUS
  90. goto RUN_GRAVIS
  91.  
  92. :NO_GUS
  93. set ULTRASND=
  94. set BLASTER=
  95. goto NO_TSR
  96.  
  97. :NO_ARIA
  98. set ARIA=
  99. set BLASTER=
  100. GOTO NO_TSR
  101.  
  102. :ARIA
  103. lh miditsr gm2.bnk /I
  104. IF ERRORLEVEL 1 GOTO INS_GM1
  105. GOTO RUN_ARIA
  106.  
  107. :INS_GM1
  108. lh miditsr gm1.bnk /I
  109. IF ERRORLEVEL 1 GOTO NO_ARIA
  110. GOTO RUN_ARIA
  111.  
  112. :RUN_GRAVIS
  113. cls
  114. sound_ds
  115. ultramid -f -q
  116. cls
  117. goto END
  118.  
  119. :RUN_ARIA
  120. cls
  121. sound_ds
  122. miditsr /U /I
  123. goto END
  124.  
  125. :NO_TSR
  126. cls
  127. sound_ds
  128. goto END
  129.  
  130. :END
  131.