1
0
Fork 0

Don't warn about missing CrashRpt when developing

This commit is contained in:
James Turner 2017-04-29 20:53:53 +01:00
parent 072bad4f50
commit 2dbe88936e

View file

@ -280,11 +280,14 @@ int main ( int argc, char **argv )
// Install crash reporting // Install crash reporting
int nResult = crInstall(&info); int nResult = crInstall(&info);
if(nResult!=0) { if(nResult!=0) {
// don't warn about missing CrashRpt in developer builds
if (strcmp(FG_BUILD_TYPE, "Dev") != 0) {
char buf[1024]; char buf[1024];
crGetLastErrorMsg(buf, 1024); crGetLastErrorMsg(buf, 1024);
flightgear::modalMessageBox("CrashRpt setup failed", flightgear::modalMessageBox("CrashRpt setup failed",
"Failed to setup crash-reporting engine, check the installation is not damaged.", "Failed to setup crash-reporting engine, check the installation is not damaged.",
buf); buf);
}
} else { } else {
global_crashRptEnabled = true; global_crashRptEnabled = true;