Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: CDEV/INIT file type... Message-ID: <9358@hoptoad.uucp> Date: 19 Dec 89 21:30:50 GMT References: <67228@tiger.oxy.edu> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 32 In article <67228@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Howdy Mac Programming World! I have been working on a CDEV/INIT and >have encountered one problem: when the file type is cdev, it appears in the >control panel, works there, etc., but fails to be loaded and run as an INIT >by INIT 31. If my file type is INIT, the INIT runs, but it no longer shows >up in the Control Panel. Tres bizarre. I have to think you must be misinterpreting your clues. INIT 31 doesn't really distinguish between the file types; I was just looking at this the other day, and the only code in INIT 31 that even looks at the file type is: CMPI.L #'INIT',D0 BEQ.S oktype CMPI.L #'cdev',D0 BEQ.S oktype CMPI.L #'RDEV',D0 BNE.S loop oktype That is, the only check is the equivalent of: if (type != 'INIT' && type != 'cdev' && type != 'RDEV') continue; It's well-nigh impossible for this code to treat the files differently depending on type, provided the type is one of the three. There are no other file type checks in the resource. System 6.0.3. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "God must be a Boogie Man." -- Joni Mitchell