2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include "icon_intern.h"
11 /*****************************************************************************
14 #include <proto/icon.h>
16 AROS_LH1(BOOL
, DeleteDiskObject
,
19 AROS_LHA(UBYTE
*, name
, A0
),
22 struct Library
*, IconBase
, 23, Icon
)
25 Deletes an icon description file.
28 name - name of the icon file without the ".info".
37 Does not yet notify workbench about the deletion.
45 *****************************************************************************/
51 if (!(infofilename
= (UBYTE
*)AllocVec (strlen(name
) + 6,
52 MEMF_ANY
| MEMF_CLEAR
)
56 /* Construct the icon's name */
57 strcpy (infofilename
, name
);
58 strcat (infofilename
, ".info");
60 success
= DeleteFile (infofilename
);
62 FreeVec (infofilename
);
66 } /* DeleteDiskObject */