diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-27 15:49:41 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-27 15:49:41 +1000 |
commit | f60a19e06581669a42000e39a8589b93c92580eb (patch) | |
tree | 3a578bb020028fff1dad07627697b100eca72820 /source/client/StarClientApplication.cpp | |
parent | 64adc2865805dc79de709e8a38a41bdb505fb662 (diff) |
optional sbinit option to disable UGC (workshop mods)
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r-- | source/client/StarClientApplication.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index 9b53a29..0095a8e 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -686,10 +686,11 @@ void ClientApplication::setError(String const& error, std::exception const& e) { void ClientApplication::updateMods(float dt) { m_cinematicOverlay->update(dt); auto ugcService = appController()->userGeneratedContentService(); - if (ugcService) { + if (ugcService && m_root->settings().includeUGC) { + Logger::info("Checking for user generated content..."); if (ugcService->triggerContentDownload()) { StringList modDirectories; - for (auto contentId : ugcService->subscribedContentIds()) { + for (auto& contentId : ugcService->subscribedContentIds()) { if (auto contentDirectory = ugcService->contentDownloadDirectory(contentId)) { Logger::info("Loading mods from user generated content with id '{}' from directory '{}'", contentId, *contentDirectory); modDirectories.append(*contentDirectory); |