build: Fixed building and loading of Rust plugins

This commit is contained in:
WerWolv
2022-02-17 11:42:56 +01:00
parent 716d52f3e3
commit b9508d853e
6 changed files with 34 additions and 31 deletions

View File

@@ -11,7 +11,8 @@
#include <hex/api/task.hpp>
#include <hex/api/keybinding.hpp>
#include <imgui.h>
using ImGuiID = unsigned int;
struct ImVec2;
namespace hex {

View File

@@ -13,7 +13,8 @@ namespace hex {
struct View;
enum class Keys {
enum class Keys
{
Space = GLFW_KEY_SPACE,
Apostrophe = GLFW_KEY_APOSTROPHE,
Comma = GLFW_KEY_COMMA,
@@ -141,6 +142,9 @@ namespace hex {
class Shortcut {
public:
Shortcut() = default;
Shortcut(Keys key) : m_keys({ key }) { }
Shortcut operator+(const Key &other) const {
Shortcut result = *this;
result.m_keys.insert(other);