diff options
| -rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 30 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 1 | ||||
| -rw-r--r-- | indra/newview/llappviewer.h | 1 | 
3 files changed, 14 insertions, 18 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 547da681b3..5defa662fa 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -1318,8 +1318,7 @@ bool LLWindowWin32::switchContext(bool fullscreen, const LLCoordScreen& size, bo      catch (...)      {          LOG_UNHANDLED_EXCEPTION("ChoosePixelFormat"); -        OSMessageBox(mCallbacks->translateString("MBPixelFmtErr"), -            mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBPixelFmtErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1330,8 +1329,7 @@ bool LLWindowWin32::switchContext(bool fullscreen, const LLCoordScreen& size, bo      if (!DescribePixelFormat(mhDC, pixel_format, sizeof(PIXELFORMATDESCRIPTOR),          &pfd))      { -        OSMessageBox(mCallbacks->translateString("MBPixelFmtDescErr"), -            mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBPixelFmtDescErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1369,8 +1367,7 @@ bool LLWindowWin32::switchContext(bool fullscreen, const LLCoordScreen& size, bo      if (!SetPixelFormat(mhDC, pixel_format, &pfd))      { -        OSMessageBox(mCallbacks->translateString("MBPixelFmtSetErr"), -            mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBPixelFmtSetErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1378,16 +1375,14 @@ bool LLWindowWin32::switchContext(bool fullscreen, const LLCoordScreen& size, bo      if (!(mhRC = SafeCreateContext(mhDC)))      { -        OSMessageBox(mCallbacks->translateString("MBGLContextErr"), -            mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBGLContextErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      }      if (!wglMakeCurrent(mhDC, mhRC))      { -        OSMessageBox(mCallbacks->translateString("MBGLContextActErr"), -            mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBGLContextActErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1593,15 +1588,14 @@ const   S32   max_format  = (S32)num_formats - 1;          if (!mhDC)          { -            OSMessageBox(mCallbacks->translateString("MBDevContextErr"), mCallbacks->translateString("MBError"), OSMB_OK); +            LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBDevContextErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);              close();              return false;          }          if (!SetPixelFormat(mhDC, pixel_format, &pfd))          { -            OSMessageBox(mCallbacks->translateString("MBPixelFmtSetErr"), -                mCallbacks->translateString("MBError"), OSMB_OK); +            LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBPixelFmtSetErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);              close();              return false;          } @@ -1633,7 +1627,7 @@ const   S32   max_format  = (S32)num_formats - 1;      {          LL_WARNS("Window") << "No wgl_ARB_pixel_format extension!" << LL_ENDL;          // cannot proceed without wgl_ARB_pixel_format extension, shutdown same as any other gGLManager.initGL() failure -        OSMessageBox(mCallbacks->translateString("MBVideoDrvErr"), mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBVideoDrvErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1642,7 +1636,7 @@ const   S32   max_format  = (S32)num_formats - 1;      if (!DescribePixelFormat(mhDC, pixel_format, sizeof(PIXELFORMATDESCRIPTOR),          &pfd))      { -        OSMessageBox(mCallbacks->translateString("MBPixelFmtDescErr"), mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBPixelFmtDescErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1664,14 +1658,14 @@ const   S32   max_format  = (S32)num_formats - 1;      if (!wglMakeCurrent(mhDC, mhRC))      { -        OSMessageBox(mCallbacks->translateString("MBGLContextActErr"), mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBGLContextActErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      }      if (!gGLManager.initGL())      { -        OSMessageBox(mCallbacks->translateString("MBVideoDrvErr"), mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBVideoDrvErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);          close();          return false;      } @@ -1876,7 +1870,7 @@ void* LLWindowWin32::createSharedContext()      if (!rc && !(rc = wglCreateContext(mhDC)))      {          close(); -        OSMessageBox(mCallbacks->translateString("MBGLContextErr"), mCallbacks->translateString("MBError"), OSMB_OK); +        LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBGLContextErr"), 8/*LAST_EXEC_GRAPHICS_INIT*/);      }      return rc; diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d61c7da93e..4b21905d88 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2554,6 +2554,7 @@ bool LLAppViewer::initConfiguration()          OSMessageBox(              "Unable to load default settings file. The installation may be corrupted.",              LLStringUtil::null,OSMB_OK); +        LLAppViewer::instance()->createErrorMarker(LAST_EXEC_MISSING_FILES);          return false;      } diff --git a/indra/newview/llappviewer.h b/indra/newview/llappviewer.h index 31acb0ae85..2432ae8641 100644 --- a/indra/newview/llappviewer.h +++ b/indra/newview/llappviewer.h @@ -76,6 +76,7 @@ typedef enum      LAST_EXEC_LOGOUT_CRASH,      LAST_EXEC_BAD_ALLOC,      LAST_EXEC_MISSING_FILES, +    LAST_EXEC_GRAPHICS_INIT,      LAST_EXEC_COUNT  } eLastExecEvent;  | 
