fixed amb832
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401374
This commit is contained in:
parent
eb0a4bda94
commit
b85f2c625c
@ -891,10 +891,18 @@ static cell_t SetMenuExitButton(IPluginContext *pContext, const cell_t *params)
|
||||
}
|
||||
|
||||
unsigned int flags = menu->GetMenuOptionFlags();
|
||||
flags |= MENUFLAG_BUTTON_EXIT;
|
||||
|
||||
if (params[2])
|
||||
{
|
||||
flags |= MENUFLAG_BUTTON_EXIT;
|
||||
} else {
|
||||
flags &= ~MENUFLAG_BUTTON_EXIT;
|
||||
}
|
||||
|
||||
menu->SetMenuOptionFlags(flags);
|
||||
flags = menu->GetMenuOptionFlags();
|
||||
return ((flags & MENUFLAG_BUTTON_EXIT) == MENUFLAG_BUTTON_EXIT) ? 1 : 0;
|
||||
unsigned int new_flags = menu->GetMenuOptionFlags();
|
||||
|
||||
return (flags == new_flags);
|
||||
}
|
||||
|
||||
static cell_t SetMenuExitBackButton(IPluginContext *pContext, const cell_t *params)
|
||||
@ -909,7 +917,14 @@ static cell_t SetMenuExitBackButton(IPluginContext *pContext, const cell_t *para
|
||||
}
|
||||
|
||||
unsigned int flags = menu->GetMenuOptionFlags();
|
||||
flags |= MENUFLAG_BUTTON_EXITBACK;
|
||||
|
||||
if (params[2])
|
||||
{
|
||||
flags |= MENUFLAG_BUTTON_EXITBACK;
|
||||
} else {
|
||||
flags &= ~MENUFLAG_BUTTON_EXITBACK;
|
||||
}
|
||||
|
||||
menu->SetMenuOptionFlags(flags);
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user