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/profile.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/profile.h') diff --git a/src/profile.h b/src/profile.h index 0adb4d0f..fcce75ee 100644 --- a/src/profile.h +++ b/src/profile.h @@ -43,6 +43,8 @@ namespace MOBase class IPluginGame; } +class GameFeatures; + /** * @brief represents a profile **/ @@ -70,7 +72,7 @@ public: * @param filter save game filter. Defaults to <no filter>. **/ Profile(const QString& name, MOBase::IPluginGame const* gamePlugin, - bool useDefaultSettings); + GameFeatures const& features, bool useDefaultSettings); /** * @brief constructor @@ -80,7 +82,8 @@ public: *so technically, invoking this should always produce a working profile * @param directory directory to read the profile from **/ - Profile(const QDir& directory, MOBase::IPluginGame const* gamePlugin); + Profile(const QDir& directory, MOBase::IPluginGame const* gamePlugin, + GameFeatures const& features); Profile(const Profile& reference); @@ -398,6 +401,7 @@ private: QSettings* m_Settings; + const GameFeatures& m_GameFeatures; const MOBase::IPluginGame* m_GamePlugin; std::vector m_ModStatus; -- cgit v1.3.1