Vendetta/API/pass ini identifier

From Quasar-RCE
Revision as of 15:26, 3 March 2025 by Wikiadmin (talk | contribs) (created pass_ini_identifier)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Definition

lib.pass_ini_identifier (string id, string version) :: string output_id, string output_version

Description

Converts an INI path file to an ID/version pair if it has been registered

Arguments

  1. id: string path to INI file, or string plugin ID
  2. version: string version number

Returns

  1. output_id: ID of the plugin if found
  2. output_version: Version of the plugin if found

Other notes

  • Added in LME 3.10.x
  • This function is used internally by Neoloader for any function that accepts an ID/version pair. If the ID/ver is passed, it gets passed back. However, this allows modders to instead provide their INI file paths to any function instead of the ID/version stated (leave 'version' as nil). these paths have been stored as keys to the ID/ver pair required. Effectively, it allows modders to shortcut storing the ID/version in the plugin itself and using it for every LME call.