diff --git a/src/starfieldgameplugins.cpp b/src/starfieldgameplugins.cpp index 5806b28..93f2e47 100644 --- a/src/starfieldgameplugins.cpp +++ b/src/starfieldgameplugins.cpp @@ -18,4 +18,13 @@ void StarfieldGamePlugins::writePluginList(const IPluginList* pluginList, MOBase::IPluginGame::SortMechanism::NONE) { CreationGamePlugins::writePluginList(pluginList, filePath); } +} + +QStringList StarfieldGamePlugins::readPluginList(MOBase::IPluginList* pluginList) +{ + if (m_Organizer->managedGame()->sortMechanism() != + MOBase::IPluginGame::SortMechanism::NONE) { + return CreationGamePlugins::readPluginList(pluginList); + } + return {}; } \ No newline at end of file diff --git a/src/starfieldgameplugins.h b/src/starfieldgameplugins.h index 49c46a7..652ef70 100644 --- a/src/starfieldgameplugins.h +++ b/src/starfieldgameplugins.h @@ -16,6 +16,7 @@ class StarfieldGamePlugins : public CreationGamePlugins virtual bool overridePluginsAreSupported() override; virtual void writePluginList(const MOBase::IPluginList* pluginList, const QString& filePath) override; + virtual QStringList readPluginList(MOBase::IPluginList* pluginList) override; }; #endif // _STARFIELDGAMEPLUGINS_H