home *** CD-ROM | disk | FTP | other *** search
- on InitSystem
- global gxUtilObj, gxFileObj, gxMsgObj, gbIsPC, gsWinPath, gsIniFile, gsMoviePath
- if not gbIsPC then
- exit
- end if
- if the colorDepth < 8 then
- alert("Die Darstellung ist bei 16 Fraben nicht orginalgetreu!")
- end if
- openXLib("MovUtils.DLL")
- if objectp(gxUtilObj) then
- gxUtilObj(mdispose)
- end if
- set gxUtilObj to MovUtils(mnew)
- set result to value(gxUtilObj)
- if result < 0 then
- Fehler(result, "Das Modul: movutils.dll ist nicht vorhanden!")
- exit
- end if
- openXLib("fileio.DLL")
- if objectp(gxFileObj) then
- gxFileObj(mdispose)
- end if
- openXLib("cawXobj.DLL")
- if objectp(gxMsgObj) then
- gxMsgObj(mdispose)
- end if
- getVolName()
- getWinPath()
- set gsMoviePath to the pathName
- end
-
- on ClearSystem
- global gxUtilObj, gxFileObj, xMsgXobj
- if objectp(gxUtilObj) then
- gxUtilObj(mdispose)
- end if
- if objectp(gxFileObj) then
- gxFileObj(mdispose)
- end if
- if objectp(gxMsgObj) then
- gxMsgObj(mdispose)
- end if
- closeXLib()
- end
-
- on getVolName
- global gxUtilObj, gsX, gsIniFile
- if objectp(gxUtilObj) then
- set gsX to gxUtilObj(mGetVolName, the pathName)
- else
- Fehler(101, "--")
- end if
- end
-
- on getSysPath
- global gxUtilObj, gsSysPath
- if objectp(gxUtilObj) then
- set gsSysPath to gxUtilObj(mGetSystemPath)
- else
- Fehler(101, "--")
- end if
- end
-
- on getWinPath
- global gxUtilObj, gsWinPath, gsIniFile
- if objectp(gxUtilObj) then
- set gsWinPath to gxUtilObj(mGetWindowsPath)
- else
- Fehler(101, "--")
- end if
- set gsIniFile to gsWinPath & "\" & gsIniFile
- end
-
- on setPath
- global gxUtilObj
- if objectp(gxUtilObj) then
- set s to field "volDirectory"
- set result to gxUtilObj(mSetDefaultPath, s)
- if result = -1 then
- alert("No such directory exists. Please try again...")
- exit
- end if
- else
- Fehler(101, "--")
- end if
- end
-