Don't warn about missing CrashRpt when developing
This commit is contained in:
parent
072bad4f50
commit
2dbe88936e
1 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue