home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 April (Special)
/
Chip-Special_1997-04_cd.bin
/
mediavis
/
xdiag
/
mvdxdiag.exe
/
QCFGUP.DAT
< prev
next >
Wrap
Text File
|
1995-04-04
|
10KB
|
238 lines
script UpdateSYSTEMINI
runscript ReadINSTALLINIFILE
if $g_domestic then
sedit -awnI ${v_winpath} system.ini drivers wave ${win_drvwav} substitute
sedit -awnqI ${v_winpath} system.ini drivers mixer ${win_drvmix} substitute
sedit -awnqI ${v_winpath} system.ini drivers midi ${win_drvfms} substitute
sedit -awnqI ${v_winpath} system.ini drivers midi1 ${win_drvmpu} substitute
## sedit -awnqI ${v_winpath} system.ini drivers midi2 ${win_drvwft} substitute
sedit -awnqI ${v_winpath} system.ini 386Enh device=+${win_386} ${win_386} substitute
sedit -awnqI ${v_winpath} system.ini 386Enh dmabuffersize ${win_dmabuf} substitute
sedit -awnqI ${v_winpath} system.ini 386Enh VirtualHDIrq OFF substitute
sedit -wnqI ${v_winpath} system.ini mci cdaudio ${win_mcicda} substitute
endif
sedit -wnqI ${v_winpath} system.ini ${win_drvwav} port ${i_pcmport} substitute
sedit -wnqI ${v_winpath} system.ini ${win_drvwav} int ${i_pcmirq} substitute
sedit -wnqI ${v_winpath} system.ini ${win_drvwav} dmachannel ${i_pcmdma} substitute
sedit -wnqI ${v_winpath} system.ini ${win_drvwav} dmachannel2 ${i_pcmhdma} substitute
sedit -wnqI ${v_winpath} system.ini boot drivers mmsystem.dll replace
sedit -wnqI ${v_winpath} system.ini boot drivers msmixmgr.dll replace
sedit -wnqI ${v_winpath} system.ini boot drivers ${win_mixdll} replace
sedit -wnqI ${v_winpath} system.ini ${win_drvmpu} int ${i_mpuirq} substitute
sedit -wnqI ${v_winpath} system.ini ${win_drvmpu} port ${i_mpuport} substitute
interrupt 2Fh ax 4A10h bx 1 # flush SMARTDRV
return
script UpdateAUTOEXECBAT
local dir type str ""
set dir `pwd
set dir "${dir}:h"
local rd type str "${v_bootdrv}${v_bootdir}"
local buf type str " "
local ptr type ptr &buf
#If vbeai.com is there, then don't tough it.
sedit -rB $rd autoexec.bat vbeai d put $ptr
if $errorlevel goto skip_adding_vbeai
nullit buf
sedit -rwnqB $rd autoexec.bat vbeai "rem ${dir}\vbeai.com " m
:skip_adding_vbeai
## sedit -rwnqB $rd autoexec.bat mv2200.dat "${dir}\diag\diag.exe -e mv2200.dat " m
nullit buf
sedit -B $rd autoexec.bat set+blaster dummy put $ptr
trim buf
set mpuportforblaster ""
## runscript FigureMPUPORTForBLASTER mpuportforblaster
if issame "$buf" "" then
set buf "set BLASTER=A$i_pcmport I$i_pcmirq D$i_pcmdma H$i_pcmhdma P$i_mpuport Q$i_mpuirq T4"
sedit -awnB $rd autoexec.bat set+blaster "$buf" modify
else
set buf "$buf" - "*="
set buf "$buf" - "A*\w" - "D*\w" - "I*\w" - "H*\w" - "P*\w" - "Q*\w"
set buf "set BLASTER=A$i_pcmport I$i_pcmirq D$i_pcmdma H$i_pcmhdma P$i_mpuport Q$i_mpuirq $buf"
sedit -awnqB $rd autoexec.bat set+blaster "$buf" substitute
endif
interrupt 2Fh ax 4A10h bx 1 # flush SMARTDRV
## sedit -B $rd autoexec.bat ${dir}\mvlite d locate
## if $errorlevel goto wasMVLITE
## sedit -rB $rd autoexec.bat ${dir}\mvlite d locate
## if $errorlevel goto wasnotMVLITE
## :noMVLITE
## sedit -wnqB $rd autoexec.bat mvlite "${dir}\mvlite.exe /a$i_icsport" m
## goto done
## :wasMVLITE
## sedit -wnqB $rd autoexec.bat mvlite "${dir}\mvlite.exe /a$i_icsport" m
## goto done
## :wasnotMVLITE
## sedit -rwnqB $rd autoexec.bat mvlite "${dir}\mvlite.exe /a$i_icsport"
## goto done
:done
return
script AddCOMMONAtEnd
set dosver type int 0
interrupt 21h ax 3000h return ax dosver
set dosverlo $dosver & FF00h / 100h
set dosverhi $dosver & 00FFh
local rd type str "${v_bootdrv}${v_bootdir}"
if $dosverhi > 5 execute $comspec /c echo [common]>> ${rd}:h\config.sys
unset dosver
unset dosverlo
unset dosverhi
return
script UpdateCONFIGSYS
local buf type str " "
local ptr type ptr &buf
local dir type str ""
local bufdev type str " "
local bufhead type str ""
local buftail type str ""
set dir `pwd
set dir "${dir}:h"
nullit buf
sedit -C ${v_bootdrv}${v_bootdir} config.sys device=+${v_namconfig} dummy put $ptr
trim buf
if issame "$buf" "" then
set buf "device=${dir}\${v_namconfig} A$i_pcmport I$i_pcmirq D$i_pcmdma H$i_pcmhdma P$i_mpuport Q$i_mpuirq"
## if issame "${v_namcdrom}" "sjcd.sys" set buf "$buf B$i_cdrport S$i_cdrtype"
set buf "$buf V"
runscript AddCOMMONAtEnd
else
##AS set buftail "$buf" - "*${v_namconfig}" + " "
set buftail "$buf" - "*${v_namconfig}\w"
set bufdev "$buf" - "$buftail"
set buf "$buftail" - "b*\w" - "s*\w" - "a*\w" - "d*\w" - "i*\w" - "h*\w" - "p*\w" - "q*\w"
set bufhead "${dir}\${v_namconfig} A$i_pcmport D$i_pcmdma I$i_pcmirq H$i_pcmhdma P$i_mpuport Q$i_mpuirq"
## if issame "${v_namcdrom}" "sjcd.sys" set bufhead "$bufhead b$i_cdrport s$i_cdrtype"
set buf "$bufhead $buf"
endif
sedit -awnC ${v_bootdrv}${v_bootdir} config.sys device=+$v_namconfig "$buf" substitute
interrupt 2Fh ax 4A10h bx 1 # flush SMARTDRV
return
script AddCDROMDriver
local dir type str " "
set dir `pwd
set dir "${dir}:h"
local rd type str "${v_bootdrv}${v_bootdir}"
local cdrbuf type str " "
local cdrptr type ptr &cdrbuf
local mcambuf type str " "
local mcamptr type ptr &mcambuf
## if isequal $i_pcmirq $c_cdrirq then # if cdromirq is same as pcm irq, try a different irq
## set i_cdrport type str 150
## set c_cdrport type str 150 # other default, port for cdrom drive
## set c_cdrirq type str 11 # other default, IRQ for cdrom drive
## set c_cdraltport type str 15EH # other default, alt. PORT for cdrom drive
## endif
if $v_usemcam sedit -C $rd config.sys device=+$v_mcamname d put $mcamptr
sedit -C $rd config.sys device=+$v_namcdrom d put $cdrptr
trim cdrbuf
trim mcambuf
if ! $v_usemcam goto skipdriver2
if ! issame "$mcambuf" "" goto gotdriver2
:nodriver2
set mcambuf "device=${dir}\${v_mcamname}"
if issame "$v_mcamname" "mini406a.sys" set mcambuf "$mcambuf /IO=$c_cdrport"
if issame "$v_mcamname" "ATASPI16.SYS" set mcambuf "$mcambuf /C:${i_cdrport},$c_cdrirq,$c_cdraltport /V"
goto dodriver2
:gotdriver2
set mcambuf "$mcambuf" - "*="
if issame "$v_mcamname" "mini406a.sys" then
set s_head "$mcambuf" - "/IO=*$$"
set s_tail "$mcambuf" - "*/IO=*\w"
set mcambuf "$s_head" + "/IO=${i_cdrport}" + "$s_tail"
endif
if issame "$v_mcamname" "ATASPI16.SYS" then
set s_head "$mcambuf" - "/C:*$$"
set s_tail "$mcambuf" - "*/C:*\w"
set mcambuf "$s_head" + "/C:${c_cdrport},$c_cdrirq,$c_cdraltport" + " $s_tail"
endif
:dodriver2
sedit -wnqC $rd config.sys device=+$v_mcamname "$mcambuf" substitute
:skipdriver2
if ! issame "${cdrbuf}" "" goto gotdriver1
:nodriver1
set cdrbuf "device=${dir}\${v_namcdrom}"
if issame "$v_namcdrom" "sjcd.sys" set cdrbuf "$cdrbuf /B:${i_cdrport}"
if issame "$v_namcdrom" "fdcd.sys" set cdrbuf "$cdrbuf /I"
set cdrbuf "$cdrbuf /D:${c_devcdrom}"
goto dodriver1
:gotdriver1
set cdrbuf "$cdrbuf" - "*="
if issame "$v_namcdrom" "sjcd.sys" then
set s_head "$cdrbuf" - "/B:*$$"
set s_tail "$cdrbuf" - "*/B:*\w"
set cdrbuf "$s_head" + "/B:${i_cdrport}" + " $s_tail"
endif
if issame "$v_namcdrom" "fdcd.sys" then
set s_head "$cdrbuf" - "/I*$$"
set s_tail "$cdrbuf" - "*/I*\w"
set cdrbuf "$s_head" + "/I" + "$s_tail"
endif
set s_head "$cdrbuf" - "/D:*$$"
set s_tail "$cdrbuf" - "*/D:*\w"
set cdrbuf "$s_head" + "/D:${c_devcdrom}" + "$s_tail"
goto dodriver1
:dodriver1
sedit -wnqC $rd config.sys device=+$v_namcdrom "$cdrbuf" substitute
if issame "${v_namcdrom}" "fdcd.sys" sedit -wnqI $v_winpath system.ini 386enh emmexclude=ca00-cbff ca00-cbff substitute
:doneCONFIG
local cdrautoname type str "mscdex.exe"
sedit -B $rd autoexec.bat corelcdx d locate
if $errorlevel set cdrautoname "corelcdx.com"
sedit -B $rd autoexec.bat mscdex d locate
if $errorlevel set cdrautoname "mscdex.exe"
sedit -B $rd autoexec.bat "${cdrautoname}:r" d locate
if $errorlevel then
sedit -wnqB $rd autoexec.bat "${cdrautoname}:r" " /d:${c_devcdrom}" replace
local buf type str " "
local ptr type ptr &buf
sedit -B $rd autoexec.bat "${cdrautoname}:r" d put $ptr
trim buf
sedit -awnqB $rd autoexec.bat "${cdrautoname}:r" "$buf" modify
else
sedit -awnqB $rd autoexec.bat mscdex "${dir}\mscdex.exe /M:10 /D:$c_devcdrom " modify
endif
interrupt 2Fh ax 4A10h bx 1 # flush SMARTDRV
return
script FigureMPUPORTForBLASTER
set portval type int hex 0
inp $i_mpuport portval
if $portval == FFh return $i_icsport # no JAZZ MPUPORT
return $i_mpuport