fix: Custom pattern include paths not working correctly

This commit is contained in:
WerWolv
2022-08-18 00:30:02 +02:00
parent a56a8c1d6c
commit 1ddd3ea2b9
3 changed files with 12 additions and 1 deletions

View File

@@ -812,6 +812,7 @@ namespace hex::plugin::builtin {
auto &runtime = ProviderExtraData::getCurrent().patternLanguage.runtime;
runtime->reset();
runtime->setIncludePaths(fs::getDefaultPaths(fs::ImHexPath::PatternsInclude) | fs::getDefaultPaths(fs::ImHexPath::Patterns));
EventManager::post<EventHighlightingChanged>();