//----------------------------------------------------------------------------- // Purpose: stops progress bar, displays error if necessary //----------------------------------------------------------------------------- void CGameUI::StopProgressBar(bool bError, const char *failureReason, const char *extendedReason) { if (!g_hLoadingDialog.Get()) return; if ( !IsX360() && bError ) { // turn the dialog to error display mode g_hLoadingDialog->DisplayGenericError(failureReason, extendedReason); } else { // close loading dialog g_hLoadingDialog->Close(); g_hLoadingDialog = NULL; } // should update the background to be in a transition here }