User Tools

Site Tools


foundation-library-functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
foundation-library-functions [2020/05/22 12:18] – created maximefoundation-library-functions [2020/07/14 13:00] maxime
Line 16: Line 16:
  
 ''boolean **foundation.isModEnabled**(//modId//)'' ''boolean **foundation.isModEnabled**(//modId//)''
 +
 +^ Name ^ Type ^ Description ^
 +| //''modId''// | ''string'' | the ID of the target mod. This ID is automatically generated and can be found in the mod's folder, in the file ''generated_ids.lua'', in the field ''ModId'' |
 +
 +===== isModLoaded =====
 +
 +Checks if a mod is already loaded, for soft dependencies purposes
 +
 +Returns ''true'' if the mod is found and it is loaded, ''false'' otherwise
 +
 +''boolean **foundation.isModLoaded**(//modId//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
foundation-library-functions.txt · Last modified: 2023/09/14 11:32 by mathieu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki