| Title: | AMIGA NOTES |
| Notice: | Join us in the *NEW* conference - HYDRA::AMIGA_V2 |
| Moderator: | HYDRA::MOORE |
| Created: | Sat Apr 26 1986 |
| Last Modified: | Wed Feb 05 1992 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 5378 |
| Total number of notes: | 38326 |
Is there a way to check for a version of Kickstart from within the
startup-sequence and branch from there? For example, if Kickstart V2 is
loaded, go to one StartupII file, but if Kickstart V1.3 is loaded, go
to a different StartupII file.
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 5109.1 | YES | ARRODS::GOLDSTEIN | Steve G DTN: 847-5416/5455 | Tue Oct 08 1991 17:04 | 12 |
YES,
The way if memory servers me correctly is
version graphic.library
then check the value comparied to one expected...
I cann't remember the correct format BUT there is a sample in the
Workbench 2
| |||||
| 5109.2 | Here is a working example | VSSCAD::GATULIS | Frank Gatulis 226-6140 | Tue Oct 08 1991 20:18 | 38 |
Here is a crude example of branching based on the version of the
graphics library (and it works).
;**********************************************************************
;First test for 1.3/1.2 boot ?
;**********************************************************************
dh0:c/version > NIL: graphics.library 36
dh0:c/IF NOT WARN
; here means we're booting 2.0, execute 2.0 startup-sequence then quit
dh0:c/execute dh1:wb/s/startup-sequence
quit
ELSE
; here means we're booting 1.3, just fall through
ENDIF
;**********************************************************************
;From here on is normal 1.3 startup
;**********************************************************************
dh0:c/BindDrivers
dh0:c/SetPatch > nil: ;patch system functions
dh0:System/FastMemFirst ;move chip memory to last in list
dh0:system/mergemem > nil: ;merge fast memory segments
dh0:c/SetClock load ;get clock data
dh0:c/echo ""
dh0:c/echo "BOOT - Workbench 1.3.3 (34.34) Kickstart (34.5)"
... etc .....
| |||||