Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprint support #162

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading