Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.ModManager.UpdateAllInstalledMods_Coroutine

Jackson Wood edited this page Mar 25, 2019 · 2 revisions

ModManager.UpdateAllInstalledMods_Coroutine

public static System.Collections.IEnumerator UpdateAllInstalledMods_Coroutine();

Returns

System.Collections.IEnumerator: A Unity coroutine that needs to be run using StartCoroutine on a Game Object component.

Description

Downloads and installs any new mods binaries.

This complex coroutine fetches collects the list of currently installed mods, fetches all of the corresponding mod profiles from the server, then sequentially attempts to download and install any mod binaries that don't match the ModProfile.currentBuild value.

Errors (other than an unresolvable request, or failed validation) will trigger a delay and reattempt. (Max 2 attempts per mod.)

Clone this wiki locally