diff options
| author | Callum Prentice <callum@gmail.com> | 2017-02-22 19:22:15 -0800 | 
|---|---|---|
| committer | Callum Prentice <callum@gmail.com> | 2017-02-22 19:22:15 -0800 | 
| commit | 8f4cb2bc15656e705e0037ea62aec13c923ba78f (patch) | |
| tree | 72618b2ca951052ea26f184249db650c73e8c6c3 | |
| parent | 2c8299d643156bb39528c3a56cac330c0dcd5df9 (diff) | |
Use new version info from CEF plugin to display in About box
| -rw-r--r-- | indra/newview/llappviewer.cpp | 30 | 
1 files changed, 17 insertions, 13 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d7b91ba741..15b8ecfcea 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -126,9 +126,7 @@  #include "llexception.h"  #if !LL_LINUX  #include "cef/dullahan.h" -#if LL_WINDOWS  #include "vlc/libvlc_version.h" -#endif // LL_WINDOWS  #endif // LL_LINUX  // Third party library includes @@ -3393,22 +3391,28 @@ LLSD LLAppViewer::getViewerInfo() const  	}  #if !LL_LINUX -	// TODO this is terrible, but how else to accurately get back entire version from -	// both CEF and Dullahan when there is no #define anymore? -	info["LIBCEF_VERSION"] = "Calculating..."; +	std::ostringstream cef_ver_codec; +	cef_ver_codec << "Dullahan: "; +	cef_ver_codec << DULLAHAN_VERSION_MAJOR; +	cef_ver_codec << "."; +	cef_ver_codec << DULLAHAN_VERSION_MINOR; +	cef_ver_codec << "."; +	cef_ver_codec << DULLAHAN_VERSION_BUILD; +	cef_ver_codec << " - CEF: "; +	cef_ver_codec << CEF_VERSION; +	info["LIBCEF_VERSION"] = cef_ver_codec.str();  #else  	info["LIBCEF_VERSION"] = "Undefined"; -  #endif  #if !LL_LINUX -	std::ostringstream ver_codec; -	ver_codec << LIBVLC_VERSION_MAJOR; -	ver_codec << "."; -	ver_codec << LIBVLC_VERSION_MINOR; -	ver_codec << "."; -	ver_codec << LIBVLC_VERSION_REVISION; -	info["LIBVLC_VERSION"] = ver_codec.str(); +	std::ostringstream vlc_ver_codec; +	vlc_ver_codec << LIBVLC_VERSION_MAJOR; +	vlc_ver_codec << "."; +	vlc_ver_codec << LIBVLC_VERSION_MINOR; +	vlc_ver_codec << "."; +	vlc_ver_codec << LIBVLC_VERSION_REVISION; +	info["LIBVLC_VERSION"] = vlc_ver_codec.str();  #else  	info["LIBVLC_VERSION"] = "Undefined";  #endif  | 
