Vendetta/API/get path

From Quasar-RCE
Jump to navigationJump to search

Definition

lib.get_path (id, version) :: file_path_pointer

Description

Retrieves the path value of the function that called this function, or if an ID/version pair are provided, returns the path to the installed mod

Arguments

  1. string id: name of the mod to be retrieved
  2. string version: version of the mod to be retrieved

Returns

If called with no arguments (or invalid arguments)

  • string file_path: The path to the folder of the file that called this function

OR, if string id/version are provided:

  • string file_path: The path to the mod's folder; example: "plugins/Neomanager/"

Other notes

  • Added in LME 3.1.x
  • Updated in LME 3.12.0: Now can return the path to the file that executed this function
  • (with an ID/Version pair) This path is based on the location of the mod's INI registration file