Skip to content

Commit

Permalink
Blueprint support (#162)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Jonathan Feenstra <[email protected]>
  • Loading branch information
Silarn and JonathanFeenstra authored Oct 3, 2024
1 parent fb713ae commit 34c0b40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/game_features/gameplugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class GamePlugins : public details::GameFeatureCRTP<GamePlugins>
virtual void writePluginLists(const MOBase::IPluginList* pluginList) = 0;
virtual void readPluginLists(MOBase::IPluginList* pluginList) = 0;
virtual QStringList getLoadOrder() = 0;
virtual bool lightPluginsAreSupported() = 0;
virtual bool mediumPluginsAreSupported() = 0;
virtual bool lightPluginsAreSupported() { return false; }
virtual bool mediumPluginsAreSupported() { return false; }
virtual bool blueprintPluginsAreSupported() { return false; }
};

} // namespace MOBase
Expand Down
10 changes: 10 additions & 0 deletions src/ipluginlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,16 @@ class IPluginList
*/
virtual bool isLightFlagged(const QString& name) const = 0;

/**
* @brief determine if a plugin is flagged as blueprint
* @param name filename of the plugin (without path but with file extension)
* @return true if the file is flagged as blueprint, false if it isn't OR if the file
* doesn't exist.
* @note this plugin flag was added in Starfield and signifies plugins that are
* hidden in the Creation Kit and removed from Plugins.txt when the game loads a save
*/
virtual bool isBlueprintFlagged(const QString& name) const = 0;

/**
* @brief determine if a plugin has no records
* @param name filename of the plugin (without path but with file extension)
Expand Down

0 comments on commit 34c0b40

Please sign in to comment.