home *** CD-ROM | disk | FTP | other *** search
- on casts_import lstcast
- global disk, dir_sep, demo
- if the machineType <> 256 then
- if chk_dir(the pathName, "INTER") then
- set disk to "INTER"
- else
- set disk to "PLANET"
- end if
- else
- if chk_dir(the pathName & "*.*", "INTER") then
- set disk to "INTER"
- else
- set disk to "PLANET"
- end if
- end if
- if the colorDepth >= 16 then
- if demo then
- set col1 to "08"
- set col2 to "16"
- set disk to "08Bit"
- else
- set col1 to "16"
- set col2 to "08"
- set disk to "16Bit"
- end if
- else
- if the colorDepth >= 8 then
- set col1 to "08"
- set col2 to "16"
- set disk to "08Bit"
- else
- set col1 to "04"
- set col2 to "08"
- set disk to "04Bit"
- end if
- end if
- set getpath to the pathName & disk & dir_sep
- repeat with i = 1 to the number of lines in field "CASTLST"
- set s to word 1 of line i of field "CASTLST"
- if s = "--END" then
- exit repeat
- end if
- set loadpic to getpath & col1 & s & ".PIC"
- set chkpic to col1 & s & ".PIC"
- set setpic to s
- importFileInto(cast lstcast, loadpic)
- if the loaded of cast lstcast then
- if the name of cast lstcast = chkpic then
- set the name of cast lstcast to setpic
- set lstcast to lstcast + 1
- next repeat
- end if
- end if
- set loadpic to getpath & col2 & s & ".PIC"
- set chkpic to col2 & s & ".PIC"
- set setpic to s
- importFileInto(cast lstcast, loadpic)
- if the loaded of cast lstcast then
- if the name of cast lstcast = chkpic then
- set the name of cast lstcast to setpic
- set lstcast to lstcast + 1
- next repeat
- end if
- end if
- alert(s & ".PIC not found" & RETURN & "Wrong Installation or not enough memory")
- return 0
- end repeat
- return 1
- end
-