From 88c386d74d7d94ec16d4d84ed674eb51e31647ac Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sun, 9 Jun 2024 12:18:17 +0200 Subject: Refactoring of game features for better management. (#2043) --- src/organizercore.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/organizercore.h') diff --git a/src/organizercore.h b/src/organizercore.h index 5bf6f4b6..726babfd 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -39,6 +39,7 @@ class ModListSortProxy; class PluginListSortProxy; class Profile; class IUserInterface; +class GameFeatures; class PluginContainer; class DirectoryRefresher; @@ -106,7 +107,7 @@ public: struct ModDataContentHolder { - using Content = ModDataContent::Content; + using Content = MOBase::ModDataContent::Content; /** * @return true if the hold list of contents is empty, false otherwise. @@ -205,7 +206,7 @@ public: /** * @brief Construct a ModDataContentHold holding the given list of contents. */ - ModDataContentHolder(std::vector contents) + ModDataContentHolder(std::vector contents) : m_Contents(std::move(contents)) {} @@ -275,6 +276,9 @@ public: // PluginContainer& pluginContainer() const; + // return the game features + GameFeatures& gameFeatures() const; + MOBase::IPluginGame const* managedGame() const; /** -- cgit v1.3.1