如何允许可以删除java default game

对某个指定的java 设定特定的network profile? 
please modify the function 
void jam_mids_getlist_req_handler(ilm_struct *ilm_ptr) 
 for (i = 0; i < saved_mids_listfile_ptr->mids_avail_count && mids_info_ptr; i++) 
     { 
            kal_uint8 attribute; 
            pmids_list[i].mids_id = i + 1 + mids_start_indx; 
            pmids_list[i].mids_name = mids_info_ptr->mids_name; 
            pmids_list[i].storage_name = mids_info_ptr->mids_root; 
            if (mids_info_ptr->mids_icon.icon_size) 
            { 
                pmids_list[i].mids_icon = (kal_char*) mids_info_ptr->mids_icon.icon_data; 
            } 
            else 
            { 
                pmids_list[i].mids_icon = NULL; 
            } 
            if ((getlist_req_ptr->filter == NULL 
                 || getlist_req_ptr->filter->filter_type & JAM_DEFAULT_GAME_FILTER 
                 || (getlist_req_ptr->filter->filter_type & JAM_CATEGORY_FILTER && getlist_req_ptr->filter->category_type == JAM_CATEGORY_DUMMY) 
                 || getlist_req_ptr->filter->filter_type == JAM_NONE_FILTER) 
                && mids_start_indx + i < j2me_default_game_count) 
            { 
//attribute = IS_DEFAULT_GAME;   
                attribute = CAN_BE_REMOVE;    /* default game can not be updated and removed */ 
                // #ifdef xxxx 
                if (mids_info_ptr->webside && 
                    strncmp((kal_char*) mids_info_ptr->webside, "h\0t\0t\0p\0:\0/\0/\0", 14) == 0) 
                { 
                    attribute |= CAN_BE_UPDATE; 
                } 
                // #endif 
            } 
            else 
            { 
            #if defined(__DRM_SUPPORT__) && defined(__MMI_JAVA_PACKAGE_MIDS__) 
                attribute = CAN_BE_UPDATE | CAN_BE_REMOVE | CAN_BE_SEND;  /* not a default game */ 
            #else 
                attribute = CAN_BE_UPDATE | CAN_BE_REMOVE; 
            #endif 
            } 
            if (mids_info_ptr->jad_url != NULL) 
            { 
                /* check if the url starts with "file://" */ 
                if (strncmp((kal_char*) mids_info_ptr->jad_url, "f\0i\0l\0e\0:\0/\0/\0", 14) == 0) 
                { 
                    attribute &= ~CAN_BE_UPDATE;    /* local install game, can not be updated */ 
                } 
            } 
            else if (mids_info_ptr->jar_url != NULL) 
            { 
                /* check if the url starts with "file://" */ 
                if (strncmp((kal_char*) mids_info_ptr->jar_url, "f\0i\0l\0e\0:\0/\0/\0", 14) == 0) 
                { 
                    attribute &= ~CAN_BE_UPDATE;    /* local install game, can not be updated */ 
                } 
            } 
            #if defined(__DRM_SUPPORT__) && defined(__MMI_JAVA_PACKAGE_MIDS__) 
            if (!jam_drm_can_be_send(mids_start_indx+i+1)) /* mids number start from 1 */ 
            { 
                 attribute &= ~CAN_BE_SEND;    
            } 
            #endif 
             
            pmids_list[i].mids_attributes = attribute; 
            pmids_list[i].mid_count = mids_info_ptr->mid_info.mid_count; 
            pmids_list[i].mids_size = mids_info_ptr->mids_size; 
            mids_info_ptr = mids_info_ptr->mids_list_info_next; 
        } 
the modification   is mainly   
attribute = IS_DEFAULT_GAME;  
change to   
attribute = CAN_BE_REMOVE; 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值