94 bytes saved. LangString should now work with sub-sections too.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1270 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f170a4d2f8
commit
3d1c70f375
7 changed files with 93 additions and 79 deletions
|
@ -182,13 +182,6 @@ enum
|
|||
|
||||
};
|
||||
|
||||
|
||||
// used for section->default_state
|
||||
#define DFS_SET 0x80000000
|
||||
#define DFS_RO 0x40000000
|
||||
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int flags; // &1=CRC, &2=uninstall, &4=silent
|
||||
|
@ -401,18 +394,24 @@ typedef struct
|
|||
int code_size;
|
||||
} uninstall_header;
|
||||
|
||||
// used for section->flags
|
||||
#define SF_SELECTED 1
|
||||
#define SF_SUBSEC 2
|
||||
#define SF_SUBSECEND 4
|
||||
#define SF_BOLD 8
|
||||
#define SF_RO 16
|
||||
#define SF_EXPAND 32
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int name_ptr; // '' for non-optional components
|
||||
int default_state; // bits 0-30 set for each of the different install_types, if any.
|
||||
// DFS_SET and DFS_RO can be set too
|
||||
int install_types; // bits set for each of the different install_types, if any.
|
||||
int flags; // SF_SELECTED, SF_RO, SF_BOLD, SF_SUB, and/or SF_EXPAND
|
||||
int code;
|
||||
int code_size;
|
||||
int size_kb;
|
||||
int expand;
|
||||
} section;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int which;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue