size optimization - better values for status_update

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5280 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-09-21 18:20:12 +00:00
parent d191cda8f8
commit 31a9a49502
3 changed files with 10 additions and 19 deletions

View file

@ -4559,24 +4559,19 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
{
ent.which=EW_SETFLAG;
ent.offsets[0]=FLAG_OFFSET(status_update);
int k=line.gettoken_enum(1,"lastused\0listonly\0textonly\0both\0none\0");
int k=line.gettoken_enum(1,"both\0textonly\0listonly\0none\0lastused\0");
if (k<0) PRINTHELP()
if (k == 0)
if (k == 4)
{
ent.offsets[2]=1;
}
else
{
if (k == 4)
{
k = 16;
}
else
{
k <<= 1;
}
ent.offsets[1]=add_intstring(k);
// both 0
// textonly 2
// listonly 4
// none 6
ent.offsets[1]=add_intstring(k*2);
}
SCRIPT_MSG("SetDetailsPrint: %s\n",line.gettoken_str(1));
}