1.Jam_interface.h中添加Filter Type。
typedef enum
{
JAM_NONE_FILTER = 0,
JAM_DISK_FILTER = 0x01,
JAM_TRUST_FILTER = 0x02,
JAM_VENDOR_FILTER = 0x04,
JAM_DEFAULT_GAME_FILTER = 0x08,
JAM_NONDEFAULT_GAME_FILTER = 0x10,//new filter type
JAM_FILTER_END
} jam_getlist_filter_type_enum;
2.Jam_adaptation.c中的jam_adp_parse_midslistfile()中添加对于新filter的判断。
if (filter->filter_type & JAM_DEFAULT_GAME_FILTER)
{
if (i < j2me_default_game_count)
{
filter_pass = 1;
}
}
if (filter->filter_type & JAM_NONDEFAULT_GAME_FILTER)//using new filter
{
if (i < j2me_default_game_count)
{
filter_pass = 0;
}
}
3.JavaAgencySrc.c中,在mmi_java_highlight_menu时使用新的filter,该函数是在菜单Fun&Game中highlight “JAVA”子菜单的响应函数。
void mmi_java_highlight_menu(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
g_java.mids_list_filter.filter_type = JAM_NONDEFAULT_GAME_FILTER;
//using JAM_NONDEFAULT_GAME_FILTER instead of JAM_NONE_FILTER
SetLeftSoftkeyFunction(EntryScrJavaMenu, KEY_EVENT_UP);
SetKeyHandler(EntryScrJavaMenu, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
}
标签:预置,FILTER,JAVA,GAME,------------------------------------------------------------ From: https://blog.51cto.com/u_15170706/6167068