home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Player 1994 January
/
CdPlayer94-01.iso
/
demos
/
elfish
/
reconfig.prg
< prev
next >
Wrap
Text File
|
1993-03-22
|
6KB
|
261 lines
; ==============================================
; === ELFISH RECONFIGURATION PROGRAM ===
; ==============================================
@prod = "ELFISH" ; name of the product
@path = "" ; starting destination subdirectory
@source = "DATA" ; source subdirectory
@prefix = "XX" ; DLL-prefix
; =====================================
#HEADER EL-FISH RECONFIGURATION
#VERSION (C) AnimaTek (RUSSIA) *** 1993
; =====================================
@PACKMODE = 2 ; starting packing bitmode:
; xx1 - regular VGA
; x1x - HI-resolution SVGA
; 1xx - sound-card support
; =====================================
#SOUNDTEST
#READDATA b "ELFISH.INS" 6B1
#IF @reply ! 0 GOTO BIG_REZ_TEST
@PACKMODE += 1;
@PACKMODE -= 2;
#GOTO VTEST_DONE
:BIG_REZ_TEST
#AIUTO @message
#VIDEOTEST
#IF @reply ! 0 GOTO VTEST_DONE
@PACKMODE += 1;
@PACKMODE -= 2;
:VTEST_DONE
; ------------------
:REENTER
#PROMPT "YOUR CHOICE ?"
#AIUTO "KEYS: - select; 'Enter'-confirm; 'Esc'-abort"
;#IF @PACKMODE & 8 GOTO SND_IS_OFF
#FEXIST "XX_MDR.DLL"
#IF @reply = 0 GOTO SND_IS_OFF
; ---- Menu for Sond is ON
:SND_IS_ON
#IF @PACKMODE ^ 2 GOTO SMALL_REZ0
; =====================================
#TEXT 0 3 53
~You have the High resolution version
~of EL-FISH installed.
~If you want to install low resolution,
~you must re-install with original disks.
~Now you may change your sound and
~high resolution settings by selecting the
~appropriate choice below:
#
#MENU 0 -1 27 [ ??? ]
E X I T
REMOVE SOUND OPTION
CHOOSE SOUND CARD
CHOOSE VIDEO CARD
#
#TEXTOFF
#GOTO CHECK_ANSWER
; =====================================
;:NO_HIRES
:SMALL_REZ0
#TEXT 0 3 53
~You have the low resolution version
~of EL-FISH installed.
~If you wish to install high resolution
~you must re-install with the
~original disks.
~Now you may change your sound settings
~by selecting the appropriate choice below:
#
#MENU 0 -1 25 [ ??? ]
E X I T
REMOVE SOUND OPTION
CHOOSE SOUND CARD
#
#TEXTOFF
; =====================================
:CHECK_ANSWER
;#IF @reply = 0 #EXIT
#IF @reply < 2 #GOSUB FINISH
#IF @reply = 2 #GOSUB OFF_SOUNDS
#IF @reply = 3 GOTO ENDOF_LOWRES0
#IF @reply = 4 #GOSUB SET_HIRES
#GOTO REENTER
;------------
:ENDOF_LOWRES0
#GOSUB SET_SOUND
; #GOSUB FINISH
#GOTO REENTER
; ---- Menu for Sond is ON
:SND_IS_OFF
#IF @PACKMODE ^ 2 GOTO SMALL_REZ1
; =====================================
#TEXT 0 3 53
~You have the High resolution version
~of EL-FISH installed.
~If you want to install low resolution,
~you must re-install with original disks.
~Now you may change your sound and
~high resolution settings by selecting the
~appropriate choice below:
#
#MENU 0 -1 27 [ ??? ]
E X I T
CHOOSE SOUND CARD
CHOOSE VIDEO CARD
#
#TEXTOFF
#GOTO CHECK_ANSWER1
; =====================================
;:NO_HIRES
:SMALL_REZ1
#TEXT 0 3 53
~You have the low resolution version
~of EL-FISH installed.
~If you wish to install high resolution
~you must re-install with the
~original disks.
~Now you may change your sound settings
~by selecting the appropriate choice below:
#
#MENU 0 -1 25 [ ??? ]
E X I T
CHOOSE SOUND CARD
#
#TEXTOFF
; =====================================
:CHECK_ANSWER1
;#IF @reply = 0 #EXIT
#IF @reply < 2 #GOSUB FINISH
#IF @reply = 2 GOTO ENDOF_LOWRES1
#IF @reply = 3 #GOSUB SET_HIRES
#GOTO REENTER
;------------
:ENDOF_LOWRES1
#GOSUB SET_SOUND
; #GOSUB FINISH
#GOTO REENTER
#EXIT
; =====================================
; ==== S U B R O U T I N E S ===
; =====================================
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:DONE
; #BEEP
#TEXT |1000 0 0 39
~D O N E
#
#RETURN ;DONE
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:SOUND_INACTIVE
#BEEP
#TEXT |1500 0 0 39
~SORRY !
~NO SOUND CARD
~DETECTED ON YOUR COMPUTER
#
#RETURN ;SOUND_INACTIVE
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:SET_SOUND
#PROMPT SOUND DRIVER CONFIGURATION
#SOUNDTEST
#SOUNDCARD ^ SYSTEM
#IF @reply = 0 GOTO SOUND_NOT_SET
; @SOUND -= 512;
#IF @SOUND ! 0 #GOSUB DONE
#IF @SOUND = 0 #GOSUB SOUND_INACTIVE
@PACKMODE -= 8
:SOUND_NOT_SET
@reply = 0;
#RETURN ;SET_SOUND
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:SET_HIRES
#PROMPT VIDEO-MODE CONFIGURATION
#VIDEOTEST
#IF @reply = 1 GOTO video_choice
#PROMPT Choose your video-card or compatible
#AIUTO KEYS: -select; 'Enter'-confirm; 'Esc'-autodetect
:video_choice
#VIDEOCARD
#SETUP "ELFISH.INS" ; write the ELFISH.INS user name
#IF @reply ! 0 #GOSUB DONE
@reply = 0;
#RETURN ;SET_HIRES
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:OFF_SOUNDS
#DELETE "XX_MDR.DLL"
@PACKMODE += 8
#GOSUB DONE
#RETURN ;OFF_SOUNDS
; ┌─────────────────────────────────────────────────────┐
; │ │
; └─────────────────────────────────────────────────────┘
:FINISH
#BEEP
#TEXT |800 0 0 37 [ GOOD BYE ]
~RECONFIGURATION IS FINISHED
#
#EXIT
#RETURN ;FINISH
; ==============================================
#END