MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetWSLPathPrefix

Method GetWSLPathPrefix

PathCopyCopy/src/PathCopyCopySettings.cpp:590–600  ·  view source on GitHub ↗

Returns the prefix to use to build WSL paths. @return WSL path prefix. Defaults to "/mnt".

Source from the content-addressed store, hash-verified

588 // @return WSL path prefix. Defaults to "/mnt".
589 //
590 std::wstring Settings::GetWSLPathPrefix() const
591 {
592 // Perform late-revising.
593 Revise();
594
595 std::wstring wslPathPrefix;
596 if (PluginUtils::ReadRegistryStringValue(m_UserKey, SETTING_WSL_PATH_PREFIX, wslPathPrefix) != ERROR_SUCCESS) {
597 wslPathPrefix = SETTING_WSL_PATH_PREFIX_DEFAULT;
598 }
599 return wslPathPrefix;
600 }
601
602 //
603 // Returns the plugin to use when user opens the contextual menu

Callers 1

GetPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected