Vendetta/API/mod read str
From Quasar-RCE
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
- string id: name of the mod to be activated
- string version: version of the mod to be activated
- string header: The [header] to look under
- string key: the key of the item to check
Returns
- 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.