Hidden sections can now have SectionIn too. Old behaviour retained (hidden sections without SectionIn are in all install types).
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1449 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3f8a5ccdcc
commit
9ca4265d78
2 changed files with 30 additions and 27 deletions
|
@ -700,6 +700,8 @@ int CEXEBuild::section_add_install_type(int inst_type)
|
|||
ERROR_MSG("Error: can't modify flags when no section is open\n");
|
||||
return PS_ERROR;
|
||||
}
|
||||
if (build_cursection->install_types == ~(int)0)
|
||||
build_cursection->install_types = 0;
|
||||
build_cursection->install_types|=inst_type;
|
||||
return PS_OK;
|
||||
}
|
||||
|
@ -793,7 +795,7 @@ int CEXEBuild::add_section(const char *secname, const char *file, int line, cons
|
|||
build_cursection->code=cur_entries->getlen()/sizeof(entry);
|
||||
build_cursection->code_size=0;
|
||||
build_cursection->size_kb=0;
|
||||
build_cursection->install_types=0;
|
||||
build_cursection->install_types=*name?0:~(int)0;
|
||||
|
||||
if (secname[0]=='-')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue