Skip to main content

check_updates_rpfm_with

Function check_updates_rpfm_with 

Source
pub fn check_updates_rpfm_with(
    current_version_str: &str,
    update_channel: UpdateChannel,
    fetch_release: impl FnOnce() -> Result<Release>,
) -> Result<APIResponse>
Expand description

Inner function that accepts injectable parameters for testability.

current_version_str is a semver string like “4.7.99”. fetch_release provides the latest release to compare against.