Internal class loading static extensions.  
 More...
#include <ExtensionsLoader.h>
Internal class loading static extensions. 
Class that load extensions and store them in a Platform.
- Note
 - This is for loading extensions declared in C++, usually in files called "Extension.cpp" or "JsExtension.cpp". GDevelop 5 extensions can also be declared directly in JavaScript. See newIDE/app/src/JsExtensionsLoader and "JsExtension.js" files for extensions declared in JavaScript. 
 
 
◆ ExtensionsLoadingDone()
  
  
      
        
          | void gd::ExtensionsLoader::ExtensionsLoadingDone  | 
          ( | 
          const gd::String &  | 
          directory | ) | 
           | 
         
       
   | 
  
static   | 
  
 
To be called when extensions loading is done. 
This is necessary on Linux to make symbols exported by extensions available.
- Parameters
 - 
  
    | directory | The directory where extensions have been loaded from.  | 
  
   
 
 
◆ LoadAllExtensions()
  
  
      
        
          | void gd::ExtensionsLoader::LoadAllExtensions  | 
          ( | 
          const gd::String &  | 
          directory,  | 
         
        
           | 
           | 
          gd::Platform &  | 
          platform,  | 
         
        
           | 
           | 
          bool  | 
          forgiving = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Load all extensions located in the extensions directory for a platform. 
- Parameters
 - 
  
    | directory | The directory where extensions must be searched.  | 
    | platform | The platform the extensions belongs to.  | 
    | forgiving | If set to true, files will try to be opened, but a failure when searching for the platform creation function symbol won't be logged as an error. (All other errors are still reported as usual). | 
  
   
- Note
 - Extensions files must have extensions *.xgd(w|l|m)(e), w for Windows, l for Linux, m for Mac, e for Edittime extensions. 
 
 
 
◆ LoadExtension()
  
  
      
        
          | void gd::ExtensionsLoader::LoadExtension  | 
          ( | 
          const gd::String &  | 
          fullpath,  | 
         
        
           | 
           | 
          gd::Platform &  | 
          platform,  | 
         
        
           | 
           | 
          bool  | 
          forgiving = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Load an extension from a file and add it to a platform. 
- Parameters
 - 
  
    | fullpath | The fullpath to the extension file.  | 
    | platform | The platform the extension belongs to.  | 
    | forgiving | If set to true, files will try to be opened, but a failure when searching for the platform creation function symbol won't be logged as an error. (All other errors are still reported as usual).  | 
  
   
 
 
The documentation for this class was generated from the following files: