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

  1. @echo off
  2.  
  3. rem ------------------------------------------------------------------------
  4. rem Darksun, The Shattered Lands
  5. rem
  6. rem This is the batch file shell for the game...
  7. rem
  8. rem This shell will detect a sound card that requires a TSR and load the
  9. rem correct TSR prior to running the game.
  10. rem
  11. rem If no TSR is necessary the game will be run with the given args...
  12. rem
  13. rem Author:     Ralph Thomas
  14. rem
  15. rem Revisions:  08/16/93 Added the un-installation of the TSR's at end run
  16. rem             08/17/93 Changed the game name, minor revisions...
  17. rem ------------------------------------------------------------------------
  18.  
  19. rem ------------------------------------------------------------------------
  20. rem Detect card
  21. rem ------------------------------------------------------------------------
  22.  
  23. @echo off
  24.  
  25. GRAVIS
  26. IF ERRORLEVEL 1 GOTO RUN_GAME
  27. IF "%ULTRADIR%"=="" goto CHECK_ARIA
  28. rem Gravis Found...
  29. IF NOT EXIST SSI1.INI GOTO NO_INSTALL
  30. goto GRAVIS
  31.  
  32. :CHECK_ARIA
  33. IF "%ARIA%"=="" goto RUN_GAME
  34. rem Aria Found...
  35. goto ARIA
  36.  
  37. rem ------------------------------------------------------------------------
  38. rem Install the Aria TSR
  39. rem ------------------------------------------------------------------------
  40.  
  41. :ARIA
  42. rem Running Aria TSR with gm2.bnk
  43. echo.
  44. lh miditsr gm2.bnk /I
  45. if errorlevel 1 goto INS_GM1:
  46. goto RUN_ARIA
  47.  
  48. :INS_GM1
  49. rem Installation of the GM2 bank failed because of insufficient memory
  50. rem on the card, now try the small bank...
  51. lh miditsr gm1.bnk /I
  52. goto RUN_ARIA
  53.  
  54. rem ------------------------------------------------------------------------
  55. rem Install the Gravis TSR
  56. rem ------------------------------------------------------------------------
  57.  
  58. :GRAVIS
  59. rem Run Gravis TSR
  60. lh ultramid -nssi1.ini -q
  61. goto RUN_GRAVIS
  62.  
  63. rem ------------------------------------------------------------------------
  64. rem Run the Game
  65. rem ------------------------------------------------------------------------
  66.  
  67. :RUN_ARIA
  68. cls
  69. rem Run the Game
  70. dsun %1 %2 %3 %4 %5 %6 %7 %8 %9
  71. rem Uninstall the TSR
  72. miditsr /U /I
  73. rem Bye...
  74. goto END_RUN
  75.  
  76. :NO_INSTALL
  77. cls
  78. echo ╔═════════════════════════════════════════════════════╗
  79. echo ║                                                     ║
  80. echo ║  ERROR: Can't run DARKSUN -- SSI1.INI is missing.   ║
  81. echo ║         Run SOUND first.                            ║
  82. echo ║                                                     ║
  83. echo ╚═════════════════════════════════════════════════════╝
  84. echo.
  85. pause
  86. goto END_RUN
  87.  
  88. :RUN_GRAVIS
  89. cls
  90. rem Run the Game
  91. dsun %1 %2 %3 %4 %5 %6 %7 %8 %9
  92. rem Uninstall the TSR
  93. ultramid -f -q
  94. rem Bye...
  95. goto END_RUN
  96.  
  97. :RUN_GAME
  98. cls
  99. rem Run the Game
  100. dsun %1 %2 %3 %4 %5 %6 %7 %8 %9
  101.  
  102. rem ------------------------------------------------------------------------
  103. rem Bye...
  104. rem ------------------------------------------------------------------------
  105.  
  106. :END_RUN
  107.