mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Define only one crashCatcherInstall function
This commit is contained in:
parent
fc12728d25
commit
55501a02c0
3 changed files with 7 additions and 16 deletions
|
@ -352,8 +352,7 @@ int wrapApplication(int (*innerApplication)(int argc, char* argv[]), int argc, c
|
|||
#else
|
||||
const std::string crashLogName = Misc::StringUtils::lowerCase(appName) + "-crash.log";
|
||||
// install the crash handler as soon as possible.
|
||||
crashCatcherInstall(
|
||||
argc, argv, Files::pathToUnicodeString(std::filesystem::temp_directory_path() / crashLogName));
|
||||
crashCatcherInstall(argc, argv, std::filesystem::temp_directory_path() / crashLogName);
|
||||
#endif
|
||||
ret = innerApplication(argc, argv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue