summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2024-06-09 12:18:17 +0200
committerGitHub <noreply@github.com>2024-06-09 12:18:17 +0200
commit88c386d74d7d94ec16d4d84ed674eb51e31647ac (patch)
treeadf0b2537f12d11d8df77f68a84926d15b063554 /src/profile.h
parentc43535f5bcf1043c3b9c00c77967267cf1acf60f (diff)
Refactoring of game features for better management. (#2043)
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h8
1 files changed, 6 insertions, 2 deletions
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 &lt;no filter&gt;.
**/
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<ModStatus> m_ModStatus;