Function Blam::Dialogs::ErrorDialogModal

Function Documentation

int Blam::Dialogs::ErrorDialogModal(HINSTANCE hInst, HWND hWnd, LPSTR error_text, bool allow_continue, bool allow_safemode)

Displays the Error dialog as a modal dialog - in other words, it halts engine execution.

This is probably the ONLY way the Error dialog should ever be used. Its layout borrows heavily from that of Halo CE. In fact, one may notice more than few similarities.

Parameters
  • hInst: - The instance handle of the application.

  • hWnd: - The window handle to act as the parent window.

  • error_text: - The text to show in the Error dialog.

  • allow_continue: - Whether or not to allow the user to choose the Continue option.

  • allow_safemode: - Whether or not to allow the user to choose the Safe Mode option.