diff options
| author | Silarn <jrim@rimpo.org> | 2018-05-07 01:29:00 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2018-05-07 01:29:00 -0500 |
| commit | 02d3f8182984c86b6a1e778e9f32a118f6fe02fe (patch) | |
| tree | 7886daac6db5bfe44f736b95daf313e386fa8322 /src/organizercore.cpp | |
| parent | fc74aa90d13cbc1bbc0f61f634d0457f207ec455 (diff) | |
Changes to allow installer_NCC to use the game source set in the DL meta
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index d1b1fcd7..35486f98 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -789,6 +789,15 @@ MOBase::IModInterface *OrganizerCore::getMod(const QString &name) const return index == UINT_MAX ? nullptr : ModInfo::getByIndex(index).data();
}
+MOBase::IPluginGame *OrganizerCore::getGame(const QString &name) const
+{
+ for (IPluginGame *game : m_PluginContainer->plugins<IPluginGame>()) {
+ if (game->gameShortName().compare(name, Qt::CaseInsensitive) == 0)
+ return game;
+ }
+ return nullptr;
+}
+
MOBase::IModInterface *OrganizerCore::createMod(GuessedValue<QString> &name)
{
bool merge = false;
|
