Debug-Output "The chosen is diferent from the previous."
set IODec = *($(IOBaseAddressDecList), ~($(IOBaseAddressHexList),+
$(IOBaseAddress)))
set ComboDec = *($(IOBaseAddressDecList), ~($(IOBaseAddressHexList),+
$(Combo2Out)))
Debug-Output "The iobaseaddress is "$(IODec)
Debug-Output "The chosen address is "$(ComboDec)
ifstr(i) $(OldVerIO) == $(ComboDec)
set Result = "Used"
endif
ifstr(i) $(Result) == "Clear"
ifstr(i) $(OldVerIO) != 999
Debug-Output "The oldversion io is being given to chkandput: "$(OldVerIO)
LibraryProcedure Result $(DetHandle) ChkAndPut $(ComboDec) $(IODec) $(OldVerIO)
else
LibraryProcedure Result $(DetHandle) ChkAndPut $(ComboDec) $(IODec)
endif
endif
ifstr(i) $(Result) == "Config"
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) WARNING "When restarting your computer, be sure to power off the machine for the new settings to take effect."
ifstr(i) $($R1) == "OK"
LibraryProcedure Result $(DetHandle) ChkAndPut $(ComboDec) $(IODec) 8
else
ifstr(i) $($R1) == "CANCEL"
ui pop 1
set Combo2Out = $(IOBaseAddress)
goto diaretry
endif
endif
endif
ifstr(i) $(Result) == "Pnpwarn"
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) WARNING "Changing the I/O base will disable PnP on your card."
ifstr(i) $($R1) == "OK"
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) WARNING "When restarting your computer, be sure to power off the machine for the new settings to take effect."
ifstr(i) $($R1) == "OK"
ifstr(i) $(StartLabel) == "configureadapter"
LibraryProcedure Result $(DetHandle) ChkAndPut $(ComboDec) $(IODec) 6
else
LibraryProcedure Result $(DetHandle) ChkAndPut $(ComboDec) $(IODec) 7
endif
endif
endif
ifstr(i) $($R1) == "CANCEL"
ui pop 1
set Combo2Out = $(IOBaseAddress)
goto diaretry
endif
endif
ifstr(i) $(Result) == "Used"
set TextStatus = "That i/o address is taken, choose another"
ui pop 1
goto diaretry
endif
endif ; end for if the iorange is diferent
endif ; end for if it is an 8416
endif ; end for if the JError is 0 (a detected card)
ui pop 1
freelibrary $(DllHandle)
freelibrary $(DetHandle)
set IRQLevel = $(Combo1Out)
set IOBaseAddress = $(Combo2Out)
set WinBaseAddress = $(Combo3Out)
else-ifstr(i) $(DLGEVENT) == "BACK"
set CommonStatus = STATUS_USERCANCEL
Debug-Output "Action: exit. Bye."
ui pop 1
freelibrary $(DllHandle)
freelibrary $(DetHandle)
goto end
else
ui pop 1
freelibrary $(DllHandle)
freelibrary $(DetHandle)
Debug-Output "Action: unknown. Bye."
goto end
endif
set WinBaseValue = *($(WinBaseAddressDecList), ~($(WinBaseAddressHexList),+
$(WinBaseAddress)))
set IOBaseValue = *($(IOBaseAddressDecList), ~($(IOBaseAddressHexList),+