Vendetta/API/resolve dep table

From Quasar-RCE
Revision as of 15:42, 3 March 2025 by Wikiadmin (talk | contribs) (created resolve_dep_table)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  1. 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

  1. 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…