Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] getUserPresetDirectory() doesn't work with full expansions #381

Open
davidhealey opened this issue Feb 15, 2023 · 1 comment
Open

Comments

@davidhealey
Copy link
Contributor

Forum Discussion

https://forum.hise.audio/topic/7228/get-current-expansion-within-frontendhandler-getuserpresetdirectory

Commit

fcad7d6

Tested

OS: Linux
HISE: n/a
Compiled Project: Yes

In compiled Full Expansion projects FrontendHandler::getUserPresetDirectory() will always return the project's user presets folder rather than the preset folder for the current expansion. The main problem with this is that the loadNextUserPreset and loadPreviousUserPreset script functions don't work.

I've tried to fix this myself with code along these lines:

const auto& ExpansionHandler* expHandler;

Expansion* currentExpansion = expHandler.getCurrentExpansion();

But this causes a sissegv and I don't know how to solve it.

@davidhealey
Copy link
Contributor Author

I've found a fix for the previous/next preset loading, it doesn't solve it at the root though at the getUserPresetDirectory() function so there might be more to do.

#384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant