You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/crashcatcher/windowscrashdumppathhelpers...

21 lines
746 B
C++

#include "windowscrashdumppathhelpers.hpp"
#include <components/misc/strings/conversion.hpp>
namespace Crash
{
std::filesystem::path getCrashDumpPath(const CrashSHM& crashShm)
{
return (std::filesystem::path(Misc::StringUtils::stringToU8String(crashShm.mStartup.mDumpDirectoryPath))
/ Misc::StringUtils::stringToU8String(crashShm.mStartup.mCrashDumpFileName))
.make_preferred();
}
std::filesystem::path getFreezeDumpPath(const CrashSHM& crashShm)
{
return (std::filesystem::path(Misc::StringUtils::stringToU8String(crashShm.mStartup.mDumpDirectoryPath))
/ Misc::StringUtils::stringToU8String(crashShm.mStartup.mFreezeDumpFileName))
.make_preferred();
}
}