1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/crashcatcher/windowscrashdumppathhelpers.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
746 B
C++
Raw Normal View History

#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();
}
}