View Single Post
02/10/22, 07:27 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
-> https://www.esoui.com/forums/showthread.php?t=9865
"If your addn needs to remove LibStub/included libraries": Will lead to -> https://www.esoui.com/forums/showthread.php?t=9149

You can easily do that yourself.

Remove subfolder "/libs".
Change txt file of the addon (e.g. live/Addons/SlowDialogs/SlowDialogs.txt) and remove all lines like
/libs/LibAddonMenu ...
/libs/LibStub ...

Add line to the txt file's top, e.g. below the ## APIVersion: line:
Code:
## DependsOn: LibAddonMenu-2.0>=32
Search in the .lua files of the addon for something like e.g.
Code:
local LAM2 = LibStub("LibAddonMenu-2.0")
Change this to:
Lua Code:
  1. local LAM2 = LibAddonMenu2

the local LAM2 could be also local LAM or local LAM or
addonName.lam or similar. Just keep the stuff in front of the = the same, and after the = exchange the LibStub("libraryname") (or LibStub:GetLibrary("libraryname) ) with the libraryname, here LibAddonMenu2.

Should do the trick on ALL addons that still include LibAddonMenu-2.0 via LibStub.

If other libraries are used via LibStub, like LibWhateverName
just add the dependency to that lib via
Code:
## DependsOn: LibWhateverName
And search in the .lua files for LibSutb("LibWhateverName") and replace it with the global variable name of that lib (often it is the same as the libraryname, here it would be LibWhateverName. If the library name contains a number like -2.0 (like LibAddonMenu-2.0) just remove the special characters like - and . in the number so it will be LibAddonMenu2.
The global library variable is mentioned at the library's www.esoui.com description or changelog!


If you think this is nothing you will get to work please check the addon comments first for already changed versions, search for "patched" "updated" "fixed" "improved" "revised" versions of the addons via Minion/esoui addon search or post a comment to the original/patched addons so that the dev will read and react to it. The devs do not get any notification on yoru forum posts here, but the comments will maybe trigger them.

Last edited by Baertram : 02/10/22 at 07:35 AM.
  Reply With Quote