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) {
|
||||||
char buf[1024];
|
// don't warn about missing CrashRpt in developer builds
|
||||||
crGetLastErrorMsg(buf, 1024);
|
if (strcmp(FG_BUILD_TYPE, "Dev") != 0) {
|
||||||
flightgear::modalMessageBox("CrashRpt setup failed",
|
char buf[1024];
|
||||||
"Failed to setup crash-reporting engine, check the installation is not damaged.",
|
crGetLastErrorMsg(buf, 1024);
|
||||||
buf);
|
flightgear::modalMessageBox("CrashRpt setup failed",
|
||||||
|
"Failed to setup crash-reporting engine, check the installation is not damaged.",
|
||||||
|
buf);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
global_crashRptEnabled = true;
|
global_crashRptEnabled = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue