api: Added api function to create pattern

This commit is contained in:
WerWolv
2022-08-06 22:29:59 +02:00
parent 88f8bb9848
commit 69d000488e
5 changed files with 12 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ namespace hex::plugin::builtin {
for (const auto &unlocalizedProviderName : ContentRegistry::Provider::getEntries()) {
if (ImGui::Hyperlink(LangEntry(unlocalizedProviderName))) {
EventManager::post<RequestCreateProvider>(unlocalizedProviderName, nullptr);
ImHexApi::Provider::createProvider(unlocalizedProviderName);
ImGui::CloseCurrentPopup();
}
}