|
|
|
@ -314,6 +314,8 @@ int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, c
|
|
|
|
|
setupLogging(cfgMgr.getLogPath().string(), appName, mode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (const auto env = std::getenv("OPENMW_DISABLE_CRASH_CATCHER"); env == nullptr || std::atol(env) == 0)
|
|
|
|
|
{
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
|
const std::string crashLogName = Misc::StringUtils::lowerCase(appName) + "-crash.dmp";
|
|
|
|
|
Crash::CrashCatcher crashy(argc, argv, (cfgMgr.getLogPath() / crashLogName).make_preferred().string());
|
|
|
|
@ -325,6 +327,9 @@ int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, c
|
|
|
|
|
#endif
|
|
|
|
|
ret = innerApplication(argc, argv);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
ret = innerApplication(argc, argv);
|
|
|
|
|
}
|
|
|
|
|
catch (const std::exception& e)
|
|
|
|
|
{
|
|
|
|
|
#if (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix))
|
|
|
|
|