Archive: File instructions in functions


File instructions in functions
I am wondering if files added within functions get placed in some special section. I try the SectionGetSize on my only section and it returns a 0 size. If I remove the file statments from my function and put them in the section directly SectionGetSize returns the correct size. Am I missing something?

Thanks,
-=Robo=-


nope.

functions are either called by sections, other functions or by special events (callback functions).

the files inside functions are packed just as files inside sections but are not counted to any section because the compiler does not check whether a function is called by exactly one section.


Thanks for your reply. That explains it.
So what your saying is that I am unable to find out what the size of these in-function files is. Boy, that sucks. I'd really like to be able to find out. Any ideas?

Seems like a GetNonSectionSize would be a good thing to add. Or create a psuedosection internally so you can get at this.

-=Robo=-


You shouldn't put them in a Function anyway, because your progress bar won't move unless the File instructions are in your Sections.

Why do you need them in a Function exactly?

-Stu