diff options
Diffstat (limited to 'linden/indra/newview/llfloaterabout.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterabout.cpp | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp index 19b7653..37e9c54 100644 --- a/linden/indra/newview/llfloaterabout.cpp +++ b/linden/indra/newview/llfloaterabout.cpp | |||
@@ -110,11 +110,14 @@ LLFloaterAbout::LLFloaterAbout() | |||
110 | viewer_link_style->setColor(gSavedSettings.getColor4("HTMLLinkColor")); | 110 | viewer_link_style->setColor(gSavedSettings.getColor4("HTMLLinkColor")); |
111 | 111 | ||
112 | // Version string | 112 | // Version string |
113 | std::string version = LLAppViewer::instance()->getSecondLifeTitle() | 113 | std::string version = llformat( |
114 | + llformat(" %d.%d.%d (%d) %s %s (%s)\n", | 114 | "%s %d.%d.%d %s / %s %d.%d.%d (%d), %s %s\n", |
115 | LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, | 115 | IMP_VIEWER_NAME, |
116 | __DATE__, __TIME__, | 116 | IMP_VERSION_MAJOR, IMP_VERSION_MINOR, IMP_VERSION_PATCH, IMP_VERSION_TEST, |
117 | gSavedSettings.getString("VersionChannelName").c_str()); | 117 | LL_VIEWER_NAME, |
118 | LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, | ||
119 | __DATE__, __TIME__); | ||
120 | |||
118 | support_widget->appendColoredText(version, FALSE, FALSE, gColors.getColor("TextFgReadOnlyColor")); | 121 | support_widget->appendColoredText(version, FALSE, FALSE, gColors.getColor("TextFgReadOnlyColor")); |
119 | support_widget->appendStyledText(LLTrans::getString("ReleaseNotes"), FALSE, FALSE, &viewer_link_style); | 122 | support_widget->appendStyledText(LLTrans::getString("ReleaseNotes"), FALSE, FALSE, &viewer_link_style); |
120 | 123 | ||
@@ -201,11 +204,20 @@ LLFloaterAbout::LLFloaterAbout() | |||
201 | support.append("Audio Driver Version: "); | 204 | support.append("Audio Driver Version: "); |
202 | bool want_fullname = true; | 205 | bool want_fullname = true; |
203 | support.append( gAudiop ? gAudiop->getDriverName(want_fullname) : "(none)" ); | 206 | support.append( gAudiop ? gAudiop->getDriverName(want_fullname) : "(none)" ); |
207 | |||
204 | support.append("\n"); | 208 | support.append("\n"); |
205 | 209 | ||
206 | LLMediaManager *mgr = LLMediaManager::getInstance(); | 210 | LLMediaManager *mgr = LLMediaManager::getInstance(); |
207 | if (mgr) | 211 | if (mgr) |
208 | { | 212 | { |
213 | LLMediaBase *gstreamer = mgr->createSourceFromMimeType("http", "audio/mpeg"); | ||
214 | if (gstreamer) | ||
215 | { | ||
216 | support.append("GStreamer Version: "); | ||
217 | support.append( gstreamer->getVersion() ); | ||
218 | support.append("\n"); | ||
219 | } | ||
220 | |||
209 | LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html"); | 221 | LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html"); |
210 | if (media_source) | 222 | if (media_source) |
211 | { | 223 | { |
@@ -265,17 +277,16 @@ void LLFloaterAbout::show(void*) | |||
265 | static std::string get_viewer_release_notes_url() | 277 | static std::string get_viewer_release_notes_url() |
266 | { | 278 | { |
267 | std::ostringstream version; | 279 | std::ostringstream version; |
268 | version << LL_VERSION_MAJOR << "." | 280 | version << IMP_VERSION_MAJOR << "." |
269 | << LL_VERSION_MINOR << "." | 281 | << IMP_VERSION_MINOR << "." |
270 | << LL_VERSION_PATCH << "." | 282 | << IMP_VERSION_PATCH; |
271 | << LL_VERSION_BUILD; | ||
272 | 283 | ||
273 | LLSD query; | 284 | // Append the test version if it's not empty |
274 | query["channel"] = gSavedSettings.getString("VersionChannelName"); | 285 | if( strcmp(IMP_VERSION_TEST, "") != 0 ) |
275 | query["version"] = version.str(); | 286 | version << "-" << IMP_VERSION_TEST; |
276 | 287 | ||
277 | std::ostringstream url; | 288 | std::ostringstream url; |
278 | url << RELEASE_NOTES_BASE_URL << LLURI::mapToQueryString(query); | 289 | url << RELEASE_NOTES_BASE_URL << version.str(); |
279 | 290 | ||
280 | return url.str(); | 291 | return url.str(); |
281 | } | 292 | } |