Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!horga!veeble!fiction!Daniel_Roedding From: Daniel_Roedding@fiction.ms.sub.org Newsgroups: comp.sys.atari.st Subject: Aaaarrghh, DESKTOP!!!! Message-ID: <208348@fiction> Date: 15 Feb 91 18:46:46 GMT Lines: 23 X-Attributes: type 2, from 100, acclv 0, expires Some strange things about the function in the DeskTop... Just try an assembly from 0xFE75E0 (TOS 1.04), you'll see a *really* dirty hack!! When you press on the DeskTop, the following happens: 1) hdv_bpb and hdv_rw are patched 2) hdv_mediach is changed to a routine that always returns "2" 3) The DeskTop opens a file "Drv:\\X" 4) This call *must* use the Getbpb()-function, otherwise the redraw routine is teminated! 5) The vectors are restored and the new directory is shown So when you write your own device drivers on GEMDOS level, you *must* use Getbpb at a file request on "Drv:\\X". It took us almost a week to find out about this... IS THIS REALLY NECESSARY???? Daniel