Function libium::add::add

source ·
pub async fn add(
    apis: APIs<'_>,
    profile: &mut Profile,
    identifiers: Vec<ModIdentifier>,
    perform_checks: bool,
    check_game_version: bool,
    check_mod_loader: bool,
) -> Result<(Vec<String>, Vec<(String, Error)>), Error>
Expand description

Classify the identifiers into the appropriate platforms, send batch requests to get the necessary information, check details about the projects, and add them to profile if suitable. Performs checks on the mods to see whether they’re compatible with the profile if perform_checks is true