mirror of https://github.com/OpenMW/openmw.git
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.
21 lines
746 B
C++
21 lines
746 B
C++
1 year ago
|
#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();
|
||
|
}
|
||
|
}
|