Thread: NetSurf
View Single Post
Old 22 April 2014, 11:36   #7
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,005
Quote:
Originally Posted by arti View Post
Hello, I'm preparing 3.1 release which will include AGA version.
I need help to modify install script to be able to choose between RTG and/or AGA.
You can use this sequence to check whether you are in an RTG environment or not:

Code:
(if (= 0 (run "version >nil: cybergraphics.library" (safe)))
 (set #msg "RTG")
;else
 (set #msg "Native")
)
Despite the name, cybergraphics.library is used by Picasso96, too.

Note that you cannot use the builtin function getversion because it only checks files but not resident modules. Picasso96 creates the library only in memory, not on disk.
thomas is offline  
 
Page generated in 0.04275 seconds with 11 queries