|
|
|
|
@ -1091,34 +1091,8 @@ dictionary *yon_proprieary_get(){
|
|
|
|
|
config_str rtn=NULL;
|
|
|
|
|
printf("LOCALS11\n");
|
|
|
|
|
rtn = yon_config_load(get_proprietary_drivers_info_command,&size);
|
|
|
|
|
printf("LOCALS2222\n");
|
|
|
|
|
drivers=yon_config_load(get_proprietary_drivers_local_command,&drivers_size);
|
|
|
|
|
printf("LOCALS\n");
|
|
|
|
|
if (drivers){
|
|
|
|
|
printf("%s\n",drivers[0]);
|
|
|
|
|
for (int drivers_found=0;drivers_found<drivers_size;drivers_found++){
|
|
|
|
|
drivers[drivers_found]=yon_char_divide_search(drivers[drivers_found],"\n",-1);
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
rtn[i] = yon_char_divide_search(rtn[i],"\n",-1);
|
|
|
|
|
char *key=yon_char_new(rtn[i]);
|
|
|
|
|
if (key[0]==';')
|
|
|
|
|
yon_char_divide_search(key,";",-1);
|
|
|
|
|
key = yon_char_divide_search(key,";",-1);
|
|
|
|
|
char *driver_name=yon_char_divide_search(yon_char_new(drivers[drivers_found])," ",-1);
|
|
|
|
|
if (strcmp(key,driver_name)==0)
|
|
|
|
|
if (i==0) videoconfig.proprietary=yon_dictionary_create_with_data(drivers[drivers_found],rtn[i]);
|
|
|
|
|
else videoconfig.proprietary=yon_dictionary_create_with_data_connected(videoconfig.proprietary,drivers[drivers_found],rtn[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printf("DONE CONFIGURING LOCALS. RENDERING\n");
|
|
|
|
|
|
|
|
|
|
yon_gtk_list_store_fill_with_proprietaries(videoconfig.list);
|
|
|
|
|
// yon_ubl_status_box_render(videoconfig.status_render,PROPRIETARY_USE_LOCAL_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
}
|
|
|
|
|
printf("STARTING ALL DRIVERS CHECK\n");
|
|
|
|
|
drivers=yon_config_load(get_proprietary_drivers_command,&drivers_size);
|
|
|
|
|
printf("DRIVERS ARE LOADED\n");
|
|
|
|
|
|
|
|
|
|
for (int dr_desc=0;dr_desc<size;dr_desc++){
|
|
|
|
|
for (int dr_foun=0;dr_foun<drivers_size;dr_foun++){
|
|
|
|
|
drivers[dr_foun]=yon_char_divide_search(drivers[dr_foun],"\n",-1);
|
|
|
|
|
@ -1135,13 +1109,33 @@ dictionary *yon_proprieary_get(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printf("SHOWING DRIVERS\n");
|
|
|
|
|
if (videoconfig.proprietary){
|
|
|
|
|
yon_gtk_list_store_fill_with_proprietaries(videoconfig.list);
|
|
|
|
|
yon_ubl_status_box_render(videoconfig.status_render,PROPRIETARY_OPETAION_DONE_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
} else {
|
|
|
|
|
yon_ubl_status_box_render(videoconfig.status_render,PROPRIETARY_LOADING_FAILED_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
|
|
|
|
|
drivers=yon_config_load(get_proprietary_drivers_local_command,&drivers_size);
|
|
|
|
|
if (drivers){
|
|
|
|
|
printf("%s\n",drivers[0]);
|
|
|
|
|
for (int drivers_found=0;drivers_found<drivers_size;drivers_found++){
|
|
|
|
|
drivers[drivers_found]=yon_char_divide_search(drivers[drivers_found],"\n",-1);
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
rtn[i] = yon_char_divide_search(rtn[i],"\n",-1);
|
|
|
|
|
char *key=yon_char_new(rtn[i]);
|
|
|
|
|
if (key[0]==';')
|
|
|
|
|
yon_char_divide_search(key,";",-1);
|
|
|
|
|
key = yon_char_divide_search(key,";",-1);
|
|
|
|
|
char *driver_name=yon_char_divide_search(yon_char_new(drivers[drivers_found])," ",-1);
|
|
|
|
|
if (strcmp(key,driver_name)==0)
|
|
|
|
|
if (i==0) videoconfig.proprietary=yon_dictionary_create_with_data(drivers[drivers_found],rtn[i]);
|
|
|
|
|
else videoconfig.proprietary=yon_dictionary_create_with_data_connected(videoconfig.proprietary,drivers[drivers_found],rtn[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
yon_gtk_list_store_fill_with_proprietaries(videoconfig.list);
|
|
|
|
|
yon_ubl_status_box_render(videoconfig.status_render,PROPRIETARY_USE_LOCAL_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
} else {
|
|
|
|
|
yon_ubl_status_box_render(videoconfig.status_render,PROPRIETARY_LOADING_FAILED_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|