Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   File instructions in functions (http://forums.winamp.com/showthread.php?t=251345)

robocoder 17th July 2006 22:27

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=-

Comm@nder21 17th July 2006 22:39

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.

robocoder 17th July 2006 23:10

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=-

Afrow UK 18th July 2006 10:15

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


All times are GMT. The time now is 05:58.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.