alert("Sorry, The Simpsons Cartoon Studio requires 256 colors to run properly.")
quit()
else
if the colorDepth > 8 then
alert("The Simpsons Cartoon Studio is optimized for a system set to a resolution of 256 colors (8 bit). If you choose to continue the program may run slower and may require more RAM.")
end if
end if
else
if the colorDepth <> 8 then
set usersColorDepth to the colorDepth
set the colorDepth to 8
if the colorDepth <> 8 then
alert("Sorry, The Simpsons Cartoon Studio requires 256 colors to run properly.")
quit()
end if
end if
end if
end
on setUpDirectoryPaths
set simpsonsPath to the moviePath
if PCflag then
set theDirDelimiter to "\"
else
set theDirDelimiter to ":"
end if
set dlogdataPath to simpsonsPath & "support" & theDirDelimiter & "dlogdata" & theDirDelimiter
set toondataPath to simpsonsPath & "support" & theDirDelimiter & "toondata" & theDirDelimiter
set exportPath to simpsonsPath & "export" & theDirDelimiter
if PCflag then
setupDLLs()
end if
setItemDelimiter()
set simpdataPath to simpsonsPath
set theItemNumber to the number of items in simpsonsPath - 1
put "simpdata" into item theItemNumber of simpdataPath
unSetItemDelimiter()
end
on setupDLLs
set checkNameList to []
repeat with count = 1 to the maxinteger
set theFileName to getNthFileNameInFolder(dlogdataPath, count)
if theFileName = EMPTY then
exit repeat
end if
append(checkNameList, theFileName)
end repeat
set DLLsAreAvailable to 0
set fileioIsAvailable to 0
set msFileIsAvailable to 0
repeat with theFileName in checkNameList
if theFileName = "fileio.dll" then
set fileioIsAvailable to 1
end if
if theFileName = "msFile.dll" then
set msFileIsAvailable to 1
end if
end repeat
if fileioIsAvailable and msFileIsAvailable then
set DLLsAreAvailable to 1
end if
if DLLsAreAvailable then
if not objectp(factory("fileIO")) then
openXLib(dlogdataPath & "fileIO")
end if
if not objectp(factory("msFile")) then
openXLib(dlogdataPath & "msFile")
set MSfileObj to msfile(mnew)
end if
else
set theMessage to "Please make sure that FILEIO.DLL and MSFILE.DLL are in the Simpdata directory."