diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-24 16:16:57 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-24 16:16:57 +0000 |
| commit | 42a68689fe60ba29367dc0c8f65083d9bde93e1f (patch) | |
| tree | 152548b8d13b7abe3052322a4f4dffb2f34904bd /src/modinfo.cpp | |
| parent | c7d583bcf1eeb08182f5f7610690ba104e0f8a84 (diff) | |
Replace GameInfo::getNexusModID with IPluginGame::getNexusModOrganizerID()
Also implement IPluginGame::getNexusGameID() but not hooked it in yet.
Diffstat (limited to 'src/modinfo.cpp')
| -rw-r--r-- | src/modinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index 59205b12..a0628bd8 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -287,7 +287,10 @@ int ModInfo::checkAllForUpdate(QObject *receiver) int result = 0; std::vector<int> modIDs; - modIDs.push_back(GameInfo::instance().getNexusModID()); + //I ought to store this, it's used elsewhere + IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>(); + + modIDs.push_back(game->getNexusModOrganizerID()); for (const ModInfo::Ptr &mod : s_Collection) { if (mod->canBeUpdated()) { |
