diff options
author | McCabe Maxsted | 2011-10-17 21:12:22 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-10-17 21:12:22 -0700 |
commit | c7b0dc6733e937f8457bf50041e4ff682abb6eb4 (patch) | |
tree | d5767ece4ce3b874cafe6ec48456b2f725c1d3f3 /linden/indra/newview/llvoiceclient.cpp | |
parent | Check to make sure the version of cElementTree is really compatible with the ... (diff) | |
download | meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.zip meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.gz meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.bz2 meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.xz |
Fixed vivox license appearing when enabling voice on opensim
Diffstat (limited to 'linden/indra/newview/llvoiceclient.cpp')
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp index 946b289..7761605 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -58,11 +58,13 @@ | |||
58 | #include "llimview.h" // for LLIMMgr | 58 | #include "llimview.h" // for LLIMMgr |
59 | #include "llimpanel.h" // for LLVoiceChannel | 59 | #include "llimpanel.h" // for LLVoiceChannel |
60 | #include "llparcel.h" | 60 | #include "llparcel.h" |
61 | #include "llstartup.h" | ||
61 | #include "llviewerparcelmgr.h" | 62 | #include "llviewerparcelmgr.h" |
62 | #include "llfirstuse.h" | 63 | #include "llfirstuse.h" |
63 | #include "llviewerwindow.h" | 64 | #include "llviewerwindow.h" |
64 | #include "llviewercamera.h" | 65 | #include "llviewercamera.h" |
65 | #include "hippolimits.h" | 66 | #include "hippolimits.h" |
67 | #include "hippogridmanager.h" | ||
66 | 68 | ||
67 | #include "llfloaterfriends.h" //VIVOX, inorder to refresh communicate panel | 69 | #include "llfloaterfriends.h" //VIVOX, inorder to refresh communicate panel |
68 | #include "llfloaterchat.h" // for LLFloaterChat::addChat() | 70 | #include "llfloaterchat.h" // for LLFloaterChat::addChat() |
@@ -76,6 +78,7 @@ | |||
76 | // for MD5 hash | 78 | // for MD5 hash |
77 | #include "llmd5.h" | 79 | #include "llmd5.h" |
78 | 80 | ||
81 | |||
79 | #define USE_SESSION_GROUPS 0 | 82 | #define USE_SESSION_GROUPS 0 |
80 | 83 | ||
81 | static bool sConnectingToAgni = false; | 84 | static bool sConnectingToAgni = false; |
@@ -7148,6 +7151,15 @@ void LLVoiceClient::avatarNameResolved(const LLUUID &id, const std::string &name | |||
7148 | } | 7151 | } |
7149 | } | 7152 | } |
7150 | 7153 | ||
7154 | //static | ||
7155 | bool LLVoiceClient::needsVivoxLicense() | ||
7156 | { | ||
7157 | // assumes we're always using slvoice.exe on Second Life | ||
7158 | bool needs_license = !gSavedSettings.getBOOL("VivoxLicenseAccepted") && | ||
7159 | gHippoGridManager->getCurrentGrid()->isSecondLife(); | ||
7160 | return needs_license; | ||
7161 | } | ||
7162 | |||
7151 | class LLViewerParcelVoiceInfo : public LLHTTPNode | 7163 | class LLViewerParcelVoiceInfo : public LLHTTPNode |
7152 | { | 7164 | { |
7153 | virtual void post( | 7165 | virtual void post( |