api: Moved menu item adding to a new registry-type API

This commit is contained in:
WerWolv
2022-01-23 02:28:38 +01:00
parent 6c6fe8ad5c
commit 714d421334
48 changed files with 364 additions and 417 deletions

View File

@@ -74,10 +74,6 @@ namespace hex::plugin::builtin {
}
void ViewCommandPalette::drawMenu() {
}
std::vector<ViewCommandPalette::CommandResult> ViewCommandPalette::getCommandResults(const std::string &input) {
constexpr auto MatchCommand = [](const std::string &currCommand, const std::string &commandToMatch) -> std::pair<MatchType, std::string_view> {
if (currCommand.empty()) {