lib.get_latest
Definition:
- lib.get_latest (id, [min, max]) :: mod_version
Description:
- Retrieves the latest version of an installed mod, or the latest within a range of versions that is installed
Arguments:
- string id: name of the mod to look up
- string min: minimum version to limit the range to
- string max: maximum version to limit the range to
Returns:
- string mod_version: the latest version of the installed mod, or the latest installed within the provided range
Other notes:
- Added in LME 3.x.x
- Changed in 3.8.x: can now define a range to consider valid return values
- Other API functions, when given mod version "0", use this function to handle lookup
- This function prioritizes the latest active version. If none are active, then retrieves latest installed version.