Vendetta/API/mod read str

From Quasar-RCE
Jump to navigationJump to search

Definition

lib.mod_read_str (id, version, header, key) :: ini_value

Description

Reads the key item from the selected mod's registration INI file

Arguments

  1. string id: name of the mod to be activated
  2. string version: version of the mod to be activated
  3. string header: The [header] to look under
  4. string key: the key of the item to check

Returns

  1. string ini_value: The value stored in the INI file at [header], key. an empty string is returned if the key doesnt exist.

Other notes

  • Added in LME 3.0.x
  • If repeated access is required, obtaining the mod's registration path with lib.get_state() and then using gkini.ReadString2 may be more efficient.