• MorphOS Developer
    geit
    Posts: 1031 from 2004/9/23
    It is the only official way.

    obtain diskobject
    copy tooltype array to a bigger array
    add own tooltype to the new array
    terminate new array with NULL
    swap pointer in diskobj
    write icon to disk
    swap pointer in diskobj back to the original
    free disk object

    You must not free or change any data on your own, so cloning is the only way to e.g. remove tooltypes in the same way.
  • »21.05.15 - 18:47
    Profile