impr: Don't display plugins in the list that couldn't be loaded

This commit is contained in:
WerWolv
2023-12-23 23:12:15 +01:00
parent 61accd9569
commit 83f8370e2a
2 changed files with 26 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ namespace hex {
Plugin(Plugin &&other) noexcept;
~Plugin();
Plugin& operator=(const Plugin &) = delete;
Plugin& operator=(Plugin &&other) noexcept;
[[nodiscard]] bool initializePlugin() const;
[[nodiscard]] std::string getPluginName() const;
[[nodiscard]] std::string getPluginAuthor() const;
@@ -58,6 +61,7 @@ namespace hex {
[[nodiscard]] const std::fs::path &getPath() const;
[[nodiscard]] bool isValid() const;
[[nodiscard]] bool isLoaded() const;
[[nodiscard]] std::span<SubCommand> getSubCommands() const;