From cf1bbdd13e0db8856df672c367d3ec1610f6c556 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 25 May 2020 19:53:21 +0200 Subject: Switch to using the ModDataContent feature from the game plugin. --- src/organizercore.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/organizercore.h') diff --git a/src/organizercore.h b/src/organizercore.h index a4d1a799..af741964 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -19,6 +19,7 @@ #include #include #include "executableinfo.h" +#include "moddatacontent.h" #include #include @@ -122,6 +123,12 @@ public: MOBase::IPluginGame const *managedGame() const; + /** + * @return the list of contents for the currently managed game, or an empty vector + * if the game plugin does not implement the ModDataContent feature. + */ + const std::vector& modDataContents() const { return m_Contents; } + bool isArchivesInit() const { return m_ArchivesInit; } bool saveCurrentLists(); @@ -305,6 +312,7 @@ private: PluginContainer *m_PluginContainer; QString m_GameName; MOBase::IPluginGame *m_GamePlugin; + std::vector m_Contents; Profile *m_CurrentProfile; -- cgit v1.3.1