aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewerwin32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llappviewerwin32.cpp')
-rw-r--r--linden/indra/newview/llappviewerwin32.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/linden/indra/newview/llappviewerwin32.cpp b/linden/indra/newview/llappviewerwin32.cpp
index e90887e..aab6289 100644
--- a/linden/indra/newview/llappviewerwin32.cpp
+++ b/linden/indra/newview/llappviewerwin32.cpp
@@ -61,14 +61,14 @@
61//*FIX:Mani - This hack is to fix a linker issue with libndofdev.lib 61//*FIX:Mani - This hack is to fix a linker issue with libndofdev.lib
62// The lib was compiled under VS2005 - in VS2003 we need to remap assert 62// The lib was compiled under VS2005 - in VS2003 we need to remap assert
63#ifdef LL_DEBUG 63#ifdef LL_DEBUG
64 #if (_MSC_VER < 1400) 64#ifdef LL_MSVC7
65 extern "C" { 65extern "C" {
66 void _wassert(const wchar_t * _Message, const wchar_t *_File, unsigned _Line) 66 void _wassert(const wchar_t * _Message, const wchar_t *_File, unsigned _Line)
67 { 67 {
68 llerrs << _Message << llendl; 68 llerrs << _Message << llendl;
69 } 69 }
70 } 70}
71 #endif 71#endif
72#endif 72#endif
73 73
74LONG WINAPI viewer_windows_exception_handler(struct _EXCEPTION_POINTERS *exception_infop) 74LONG WINAPI viewer_windows_exception_handler(struct _EXCEPTION_POINTERS *exception_infop)
@@ -298,7 +298,7 @@ void LLAppViewerWin32::initConsole()
298 298
299void write_debug_dx(const char* str) 299void write_debug_dx(const char* str)
300{ 300{
301 LLString value = gDebugInfo["DXInfo"].asString(); 301 std::string value = gDebugInfo["DXInfo"].asString();
302 value += str; 302 value += str;
303 gDebugInfo["DXInfo"] = value; 303 gDebugInfo["DXInfo"] = value;
304} 304}
@@ -347,7 +347,7 @@ bool LLAppViewerWin32::initHardwareTest()
347 "\n" 347 "\n"
348 "Do you wish to continue?\n"; 348 "Do you wish to continue?\n";
349 S32 button = OSMessageBox( 349 S32 button = OSMessageBox(
350 msg.str().c_str(), 350 msg.str(),
351 "Warning", 351 "Warning",
352 OSMB_YESNO); 352 OSMB_YESNO);
353 if (OSBTN_NO== button) 353 if (OSBTN_NO== button)
@@ -367,7 +367,7 @@ bool LLAppViewerWin32::initHardwareTest()
367 std::ostringstream splash_msg; 367 std::ostringstream splash_msg;
368 splash_msg << "Loading " << LLAppViewer::instance()->getSecondLifeTitle() << "..."; 368 splash_msg << "Loading " << LLAppViewer::instance()->getSecondLifeTitle() << "...";
369 369
370 LLSplashScreen::update(splash_msg.str().c_str()); 370 LLSplashScreen::update(splash_msg.str());
371 } 371 }
372 372
373 if (!LLWinDebug::checkExceptionHandler()) 373 if (!LLWinDebug::checkExceptionHandler())
@@ -395,14 +395,17 @@ bool LLAppViewerWin32::initParseCommandLine(LLCommandLineParser& clp)
395 { 395 {
396 if (success >= 2 && locale->lang) // confident! 396 if (success >= 2 && locale->lang) // confident!
397 { 397 {
398 LL_INFOS("AppInit") << "Language: " << ll_safe_string(locale->lang) << LL_ENDL;
399 LL_INFOS("AppInit") << "Location: " << ll_safe_string(locale->country) << LL_ENDL;
400 LL_INFOS("AppInit") << "Variant: " << ll_safe_string(locale->variant) << LL_ENDL;
398 LLControlVariable* c = gSavedSettings.getControl("SystemLanguage"); 401 LLControlVariable* c = gSavedSettings.getControl("SystemLanguage");
399 if(c) 402 if(c)
400 { 403 {
401 c->setValue(std::string(locale->lang), false); 404 c->setValue(std::string(locale->lang), false);
402 } 405 }
403 } 406 }
404 FL_FreeLocale(&locale);
405 } 407 }
408 FL_FreeLocale(&locale);
406 409
407 return true; 410 return true;
408} 411}