mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
refactor: Better interface for the event system
This commit is contained in:
@@ -9,7 +9,7 @@ namespace hex::plugin::builtin {
|
||||
ContentRegistry::CommunicationInterface::registerNetworkEndpoint("pattern_editor/set_code", [](const nlohmann::json &data) -> nlohmann::json {
|
||||
auto code = data.at("code").get<std::string>();
|
||||
|
||||
EventManager::post<RequestSetPatternLanguageCode>(code);
|
||||
RequestSetPatternLanguageCode::post(code);
|
||||
|
||||
return { };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user