View Single Post
05/26/18, 06:49 PM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
Originally Posted by BoarGules View Post
Thank you. I didn't know that the order of the modules in the .txt file was significant. So it was a typo, of a sort.
The order of the files in the.txt determines the load order of the files. When a file is loaded it'll run all the code there. If some code is within a function, unless the function is called it won't be run, but the function will be created. The event for add-on initialized is fired anytime an add-ons files are all loaded. Thus, you can put the LibStub file inside that and it won't matter where in the manifest libstuf is.
  Reply With Quote