Difference between revisions of "Modules"

From Armagetron
(Done basic telegraphic overview.)
 
 
Line 9: Line 9:
  
 
Included modules from <code><data-dir>/scripts/<loader>/</code> are cataloged in <code>st_Modules</code> at application's start. Might change to catalog known/previousely-known modules from resource.
 
Included modules from <code><data-dir>/scripts/<loader>/</code> are cataloged in <code>st_Modules</code> at application's start. Might change to catalog known/previousely-known modules from resource.
 +
 +
[[Category:Development]]

Latest revision as of 16:30, 23 August 2021

Modules, Scripts, whatever you call them. Stuff you can load and unload at will.

Overview

Two main classes:

tModule

Each module/script/flying piece of spaghetti has one. Main items include path to what's being loaded, canonical name and loader object(see tModuleLoader). They are mapped to their name in st_tModules

tModuleLoader

You have one sub-class and it's single instance for each "type" of module. Each type of module is loaded in a different manner. Libraries use dlopen and it's MS variant and python uses a python interpreter. They are mapped to their nickname in st_tModuleLoaders.

Included modules from <data-dir>/scripts/<loader>/ are cataloged in st_Modules at application's start. Might change to catalog known/previousely-known modules from resource.