Vendetta/API/resolve dep table
From Quasar-RCE
Jump to navigationJump to search
Definition
lib.resolve_dep_table (input_table) :: boolean status
Description
When provided a table of mod IDs, checks if all exist and returns the result.
Arguments
- input_table: Table of mod IDs in the following format:
{
{
name = mod_name,
version = mod_version,
},
{
name = mod_name,
version = mod_version_minimum,
ver_max = mod_version_maximum,
},
...
}
Returns
- Boolean status
- true if all mods in the table are "ready", otherwise false
- mods must be loaded! existing isn't enough!
Other notes
- Added in LME 3.0.x
- Just like lib.require(), use a ver_max="version" entry to make that particular mod entry accept a range of version numbers, with the old version="mod_version" acting as the minimum version
- The input table is not sanity checked yet…