home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global PNM, PLAYER
- if getNthFileNameInFolder(FixPath(the pathName & "DATA:DESTDIR:DQDIR1:"), 1) = EMPTY then
- if the machineType = 256 then
- set DriveList to ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Not found"]
- repeat with n in DriveList
- set CDPath to n & ":\DATA\DESTDIR\DQDIR1\"
- if getNthFileNameInFolder(CDPath, 1) contains "D1Q0.D" then
- exit repeat
- end if
- end repeat
- if n = "Not found" then
- alert("BackPacker CD not found!")
- quit()
- end if
- set PNM to n & ":\DATA:"
- else
- if the machineType <> 256 then
- set PNM to "BackPacker:DATA:"
- set CDPath to PNM & "DESTDIR:DQDIR1:"
- if not (getNthFileNameInFolder(CDPath, 1) contains "D1Q0.D") then
- alert("BackPacker CD not found!")
- quit()
- end if
- end if
- end if
- else
- set PNM to the pathName & "DATA:"
- end if
- set the fixStageSize to 1
- set the centerStage to 1
- set PLAYER to 1
- if PLAYER and (the machineType <> 256) then
- set RW_Obj to RearWindow(mnew, "M")
- RW_Obj(mIndexColorToWindow, 255)
- end if
- go(1, FixPath(PNM & "MISC:START"))
- end
-