Get current expansion within FrontendHandler::getUserPresetDirectory
-
With full expansions the
getUserPresetDirectory()
function returns the plugin preset directory instead of the expansion's.So within that function I want to get the current expansion, check if it's a full expansion, and if so return its user preset directory instead.
So I add this, around line 1540:
ExpansionHandler* expHandler; Expansion* currentExpansion = expHandler->getCurrentExpansion();
But now I get a crash on startup on the
getCurrentExpansion()
line. The stack trace points me toinline ObjectType* get() const noexcept { return owner; }
injuce_WeakReference.h
but I'm not sure what the problem is. @Christoph-Hart any hints? -
I've opened a github issue about this