In lua files:
Just replace local LAM = LibStub("LibAddonMenu-2.0") with
Lua Code:
local LAM = LibAddonMenu2
In the txt file:
Remove all hardcoded lines like /libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua
and
/libs/LibAddonMenu-2.0/controls/...
And add or change exsiitng entries with ## OptionalDependsOn or ## DependsOn: LibAddonMenu-2.0 to:
Code:
##DependsOn: LibAddonMenu-2.0>=31
And delete all ##DependsOn or OptionalDependsOn: LibStub
If it's in the same row as other libraries as LibAddonMenu-2.0 just delete the LibStub text in that row!
That's it.