mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
21 lines
746 B
C++
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();
|
||
|
}
|
||
|
}
|