Vendetta/API/build ini

From Quasar-RCE
Jump to navigationJump to search

Definition

lib.build_ini(file_pointer) :: table or false

Description

compiles Neoloader-relevant information from an ini file

Arguments

  1. string file_pointer: a path/to/file string pointing to a mod's .ini registration

Returns

  • if found and appears valid:
    1. table file_results: a table of information on this mod
  • if not found or formatted incorrectly:
    1. boolean error: false
    2. string error_id: display string concerning input error

Other notes

  • Added in LME 3.x.x
  • As long as the modreg key "id" exists and isn't "null", the ini should be compiled with default information at minimum.
  • The table that is built is stored locally - if the file is attempted to access again, or if another mod with the same id and version is detected, it will not compile and instead just return the already built table.