MCPcopy Create free account
hub / github.com/axmolengine/axmol / getNativeWritableAbsolutePath

Method getNativeWritableAbsolutePath

core/platform/winrt/FileUtilsWinRT.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::string FileUtilsWinRT::getNativeWritableAbsolutePath() const {
85 if (!_writablePath.empty())
86 {
87 return _writablePath;
88 }
89
90 auto localFolderPath = winrt::Windows::Storage::ApplicationData::Current().LocalFolder().Path();
91 std::string ret = PlatformStringToString(localFolderPath);
92 ret += '\\';
93 std::replace(ret.begin(), ret.end(), '\\', '/');
94 return ret;
95}
96
97FileUtilsWinRT::FileUtilsWinRT()
98{

Callers

nothing calls this directly

Calls 4

PlatformStringToStringFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected