4 mainmenu_commands::ptr ptr;
t_uint32 index;
6 mainmenu_commands_v2::ptr v2;
7 if (!ptr->service_query_t(v2))
return false;
8 if (!v2->is_command_dynamic(index))
return false;
9 return v2->dynamic_execute(index, p_subGuid, p_callback);
12 mainmenu_commands::ptr ptr;
t_uint32 index;
14 ptr->execute(index, p_callback);
23 const t_uint32 count = ptr->get_command_count();
25 ptr->get_name(n,temp);
27 p_guid = ptr->get_command(n);
38 switch(node->get_type()) {
39 case mainmenu_node::type_command:
40 if (subID == node->get_guid()) {
41 node->execute(callback);
return true;
44 case mainmenu_node::type_group:
46 const t_size total = node->get_children_count();
47 for(
t_size walk = 0; walk < total; ++walk) {
static bool g_find_by_name(const char *p_name, GUID &p_guid)
virtual bool dynamic_execute(t_uint32 index, const GUID &subID, service_ptr_t< service_base > callback)
Default fallback implementation provided.
static bool g_execute_dynamic(const GUID &p_guid, const GUID &p_subGuid, service_ptr_t< service_base > p_callback=NULL)
int SHARED_EXPORT stricmp_utf8(const char *p1, const char *p2)
static bool dynamic_execute_recur(mainmenu_node::ptr node, const GUID &subID, service_ptr_t< service_base > callback)
static bool g_execute(const GUID &p_guid, service_ptr_t< service_base > p_callback=NULL)
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
bool next(service_ptr_t< t_query > &p_out)
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc