MCPcopy Create free account
hub / github.com/ZDoom/Raze / M_GetNormalizedPath

Function M_GetNormalizedPath

source/common/platform/win32/i_specialpaths.cpp:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444//===========================================================================
445
446FString M_GetNormalizedPath(const char* path)
447{
448 std::wstring wpath = WideString(path);
449 wchar_t buffer[MAX_PATH];
450 GetFullPathNameW(wpath.c_str(), MAX_PATH, buffer, nullptr);
451 FString result(buffer);
452 FixPathSeperator(result);
453 return result;
454}

Callers 2

AddSearchPathFunction · 0.50
CollectSubdirectoriesFunction · 0.50

Calls 3

WideStringFunction · 0.85
c_strMethod · 0.80
FixPathSeperatorFunction · 0.50

Tested by

no test coverage detected