Commit Graph

20 Commits (6090bfcdab36c7fd4a008c463782c11a10fedafb)

Author SHA1 Message Date
AnyOldName3 899f0a4633 Remove redundant explicit null terminator 1 year ago
AnyOldName3 677c17530e I don't like reformatting things over and over. 1 year ago
AnyOldName3 1bdcb5d6d9 Share the dump directory for crash and freeze dumps
This means the shared memory struct is just 255 bytes longer than a few
commits ago instead of 32K.

Also introduce a function for putting path strings in the shared memory
as there was too much copied and pasted code and it was error-prone.

Also free some handles once we're done with them so they don't leak.
1 year ago
AnyOldName3 48368f79b6 Update Windows crash dump path once we know where we're logging
Manual rewrite of 5102f4b11d
2 years ago
AnyOldName3 3bb3f58c73 Don't put crash dumps in Temp on Windows
Well... unless we fail to get the user profile directory.

Also put freeze dumps in a more appropriately-named file.

Discussed in https://gitlab.com/OpenMW/openmw/-/issues/7455

Manual rewrite of c21695c951

As well as that, I found a bug where the crash dump path was being converted from a std::filesystem::path to a utf8-encoded std::string, then passed to the crash catcher, which converted it to a std::filesystem::path implicitly, but using the system eight-bit code page, which wouldn't usually be UTF-8. That's now fixed by passing the function that expects a path a path instead of a string.
2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 5456ef1d50 Add new functions and overloads to support std::u8string and std::filesystem::path. 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
elsid bef15edf0b
Remove redundant ostream, istream, iostream and sstream includes
* Replace by std::to_string and operator+ where possible.
* Move the code requiring to include <sstream> from .hpp to .cpp files.
3 years ago
AnyOldName3 0e29a760d8 Tidy up includes 3 years ago
AnyOldName3 c746a8abb7 Attempt to catch freezes on Windows 3 years ago
Andrei Kortunov f9d42ed396 Fix MSVC's C4267 warnings 4 years ago
jvoisin 813969a46e Fix an off-by-one in windows_crashcatcher.cpp 4 years ago
Andrei Kortunov 2009916dd8 Fix dead code 4 years ago
CedricMocquillon cc5c6fe3ad Use data() method 4 years ago
CedricMocquillon f400116bcd Use 32767 characters for log path 4 years ago
CedricMocquillon 3eb2b32123 Fix typpo issue on arguments 4 years ago
CedricMocquillon e2041de969 Use the incremental approach to handle long path 4 years ago
CedricMocquillon 73afc55462 Fork the current process to monitor exe, generate minidump on crash 4 years ago