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
|
@ -1658,7 +1658,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
char *p=line.gettoken_str(wt);
|
||||
if (p[0]=='R' && p[1]=='O')
|
||||
{
|
||||
if (section_add_flags(DFS_SET|DFS_RO) != PS_OK) return PS_ERROR;
|
||||
if (section_add_flags(SF_SELECTED|SF_RO) != PS_OK) return PS_ERROR;
|
||||
SCRIPT_MSG("[RO] ");
|
||||
}
|
||||
else
|
||||
|
@ -1666,7 +1666,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
int x=atoi(p)-1;
|
||||
if (x >= 0 && x < NSIS_MAX_INST_TYPES)
|
||||
{
|
||||
if (section_add_flags(1<<x) != PS_OK) return PS_ERROR;
|
||||
if (section_add_install_type(1<<x) != PS_OK) return PS_ERROR;
|
||||
SCRIPT_MSG("[%d] ",x);
|
||||
}
|
||||
else if (x < 0)
|
||||
|
@ -3556,6 +3556,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
|
||||
// SetDetailsPrint lastused
|
||||
ent.which=EW_UPDATETEXT;
|
||||
ent.offsets[0]=0;
|
||||
ent.offsets[1]=8; // lastused
|
||||
ret=add_entry(&ent);
|
||||
if (ret != PS_OK) return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue