pub fn guess_version(resources: &Resources) -> String {
    let mut found = vec![Found::new()];
    let config_differences: Vec<(String, String, String, String)> =
        serde_json::from_value(resources.octool_config["config_differences"].clone()).unwrap();

    for (sec, sub, search, ver) in config_differences {
        find(&search, &resources.config_plist, &mut found);
        for result in &found {
            if result.keys.contains(&sec) && result.keys.contains(&sub) {
                return ver.to_owned();
            }
        }
    }
    "".to_string()
}
/// run through vec of "config_differences" from tool_config_files/octool_config.json
/// if the current config.plist being worked on contains the field in the vec then
/// it is most likely to be the correct version of OpenCore
run through vec of "config_differences" from tool_config_files/octool_config.json
if the current config.plist being worked on contains the field in the vec then
it is most likely to be the correct version of OpenCore
run through vec of " config_differences " from tool_config_files / octool_config . json if the current config . plist being worked on contains the field in the vec then it is most likely to be the correct version of OpenCore
pub fn guess_version(resources: &Resources) -> String {
    let mut found = vec![Found::new()];
    let config_differences: Vec<(String, String, String, String)> =
        serde_json::from_value(resources.octool_config["config_differences"].clone()).unwrap();
    for (sec, sub, search, ver) in config_differences {
        find(&search, &resources.config_plist, &mut found);
        for result in &found {
            if result.keys.contains(&sec) && result.keys.contains(&sub) {
                return ver.to_owned();
            }
        }
    }
    "".to_string()
}
pub fn guess_version ( resources : & Resources ) -> String { let mut found = vec ! [ Found new ( ) ] ; let config_differences : Vec < ( String , String , String , String ) > = serde_json :: from_value ( resources . octool_config [ " " ] . clone ( ) ) . unwrap ( ) ; for ( sec , sub , search , ver ) in config_differences { find ( & search , & resources . config_plist , & mut found ) ; for result in & found { if result . keys . contains ( & sec ) && result . keys . contains ( & sub ) { return ver . to_owned ( ) ; } } } " " . to_string ( ) }
run through vec of "config_differences" from tool_config_files/octool_config.json
if the current config.plist being worked on contains the field in the vec then
it is most likely to be the correct version of OpenCore
run through vec of " config_differences " from tool_config_files / octool_config . json if the current config . plist being worked on contains the field in the vec then it is most likely to be the correct version of OpenCore
resources
&Resources
resources
&Resources