Skip to content

Commit

Permalink
Add PluginInterface::IsBlueprintPlugin()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Aug 24, 2024
1 parent 4e71695 commit fbabe2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions include/loot/plugin_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ class PluginInterface {
*/
virtual bool IsUpdatePlugin() const = 0;

/**
* Check if the plugin is a blueprint plugin.
* @return True if plugin is a blueprint plugin, false otherwise.
*/
virtual bool IsBlueprintPlugin() const = 0;

/**
* Check if the plugin is or would be valid as a light plugin.
* @return True if the plugin is a valid light plugin or would be a valid
Expand Down
2 changes: 0 additions & 2 deletions src/api/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class GameCache;
// An interface containing member functions that are used when sorting plugins.
class PluginSortingInterface : public PluginInterface {
public:
virtual bool IsBlueprintPlugin() const = 0;

virtual size_t GetOverrideRecordCount() const = 0;
virtual uint32_t GetRecordAndGroupCount() const = 0;

Expand Down

0 comments on commit fbabe2a

Please sign in to comment.