summaryrefslogtreecommitdiff
path: root/indra/llplugin/llpluginclassmedia.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-30 17:26:55 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-30 17:26:55 +0800
commit9aac948d59cee9bce12098b060d94aeba33efa86 (patch)
tree1eae7fe6b7e93cb1713dd6241a866b2d122ecf21 /indra/llplugin/llpluginclassmedia.cpp
parentf711733280410c40cf3e96de43692b34cebed186 (diff)
llplugin not refer to gSavedSettings when no CEF
so SLPlugin wouldn't lose reference to it when the libraries are built as dynamic.
Diffstat (limited to 'indra/llplugin/llpluginclassmedia.cpp')
-rw-r--r--indra/llplugin/llpluginclassmedia.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp
index 3e72710366..e0b3f6ef56 100644
--- a/indra/llplugin/llpluginclassmedia.cpp
+++ b/indra/llplugin/llpluginclassmedia.cpp
@@ -33,7 +33,9 @@
#include "llpluginmessageclasses.h"
#include "llcontrol.h"
+#ifndef LL_USESYSTEMLIBS
extern LLControlGroup gSavedSettings;
+#endif
#if LL_DARWIN
extern BOOL gHiDPISupport;
#endif
@@ -934,8 +936,10 @@ void LLPluginClassMedia::setUserDataPath(const std::string &user_data_path_cache
message.setValue("username", username); // cef shares cache between users but creates user-based contexts
message.setValue("cef_log_file", user_data_path_cef_log);
+#ifndef LL_USESYSTEMLIBS
bool cef_verbose_log = gSavedSettings.getBOOL("CefVerboseLog");
message.setValueBoolean("cef_verbose_log", cef_verbose_log);
+#endif
sendMessage(message);
}