MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getDumpDirectory

Function getDumpDirectory

src/Platform/src/Crash.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 [[maybe_unused]] static std::wstring getDumpDirectory()
82 {
83 auto crashDir = Platform::getUserDirectory() / "crashes";
84 if (!fs::exists(crashDir))
85 {
86 fs::create_directories(crashDir);
87 }
88 return crashDir.wstring();
89 }
90
91#endif // USE_BREAKPAD
92

Callers 1

initFunction · 0.85

Calls 1

getUserDirectoryFunction · 0.70

Tested by

no test coverage detected