Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Doobrey on February 27, 2006, 10:41:00 PM

Title: Creating a resource with autoinit?
Post by: Doobrey on February 27, 2006, 10:41:00 PM
Hi guys (OK, Hi Piru..I know you'll be the first to answer this  ;-) )

Basically I'm creating a resource,  right now I'm doing it the 'normal' way
ie. in the resident struct  flags not setting RTF_AUTOINIT,rt_type=NT_RESOURCE, and rt_init points to an init routine that does a MakeLibrary() then AddResource().

But, is it possible to do away with most of that to make the code a bit smaller?
 I know that setting RTF_AUTOINIT can do away with the MakeLibrary() and AddLibrary() stuff in a library, but is exec smart enough to spot it's not a library and use AddResource() instead??

 (I had a look through the NDK and the RKRM Libraries, but couldn't see anything mentioning it)