MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetAbsPath

Function GetAbsPath

Source/Compat/Win/win_compat.cpp:119–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119string GetAbsPath(const char *full_rel_path) {
120 wstring w_full_rel_path = UTF16fromUTF8(full_rel_path);
121 wchar_t w_full_path[PATH_MAX];
122 _wfullpath(w_full_path, w_full_rel_path.c_str(), PATH_MAX);
123 return UTF8fromUTF16(wstring(w_full_path));
124}
125
126// Get the Windows write directory
127// ("$VOL:/$USERNAME/Documents/Wolfire/Overgrowth")

Callers 4

FileAccessMethod · 0.50
CalculateHashMethod · 0.50
VerifyPathMethod · 0.50
GetAbsPathStrMethod · 0.50

Calls 3

UTF16fromUTF8Function · 0.85
UTF8fromUTF16Function · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected