Extract mbedtls to cpp file
This commit is contained in:
parent
0c75b8d6b2
commit
03467b64e3
5 changed files with 126 additions and 86 deletions
|
@ -739,7 +739,7 @@ const std::string& GetUserPath(UserPath path, const std::string& new_path) {
|
|||
std::string GetHactoolConfigurationPath() {
|
||||
#ifdef _WIN32
|
||||
char path[MAX_PATH];
|
||||
if (SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, path) != S_OK)
|
||||
if (SHGetFolderPathA(nullptr, CSIDL_PROFILE, nullptr, 0, path) != S_OK)
|
||||
return "";
|
||||
std::string local_path = Common::StringFromFixedZeroTerminatedBuffer(path, MAX_PATH);
|
||||
return local_path + "\\.switch";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue