home *** CD-ROM | disk | FTP | other *** search
- -- This is the text file LINGO.INI. It is designed
- -- to tell Director for Windows what Xtras, XObjects, or
- -- DLLs should be loaded when starting DIRECTOR.EXE.
-
- -- You should have a copy of this file and the associated
- -- DLL file (for example, FILEIO.DLL) in the same
- -- location as any Projector you wish to distribute.
- -- Otherwise, the Projector will not be able to utilize
- -- the features of the DLL you want to use.
-
- -- To comment out one of the lines below, use two dashes (--)
- -- as in the beginning of these lines.
-
- -- Loaded are:
- -- FILEIO.DLL, for file input and output
-
- on startup
- put "Now loading LINGO.INI"&&the date&&the time
- put "This computer is running in "&& the colorDepth &"-bit color depth."
- -- set the centerStage to TRUE
- openxlib "fileio"
- -- Following line prevents crashes on Windows systems when using math functions
- -- such as power or log and passing bogus or extremely large/small values.
- -- Invoking the float->string conversion code with a valid value prevents
- -- future crashes in this routine. drs 1mar96
- if string(0.0)="a" then nothing
-
- -- add code to check for drive
-
-
- -- Startup utility to assist in finding search path
- --
-
- if the machineType = 256 then
- set myCD to EMPTY
- -- Attempt to find files by updating search path
- -- and appending CD-ROM
- put CheckDrive("trainsreo.txt") into myCD
- set tempString to myCD&"TrainDat\"
- setAt the searchPath, 1, tempString
- else
- -- on the macintosh this should be automatic
- setAt the searchPath, 1, "TrainDat:"
- end if
-
-
- end startup
-
- on CheckDrive weirdfil
- -- Note: use your actual filename instead of "weirdfil"
- -- throughout this handler
- repeat with I = 66 to 90
- set drive = numToChar( I )
- set myThisPath = string(drive & ":\"& weirdfil)
- set myFile = fileIO(mNew, "read", myThisPath)
- if objectP(myFile) then
- myFile(mDispose)
- return drive&":"
- exit
- end if
- end repeat
- alert "Please check that"&"E&weirdfil"E&&"is on your¨
- CD drive. Video might not work without the drive inserted"
-
- end
-
-