Fixed known folders detection for Windows (at least compilation).

This commit is contained in:
Patrick 2025-03-03 17:26:29 +01:00
parent ce26cda739
commit 1c0c928856

View File

@ -59,7 +59,7 @@ fs::path getKnownFolder(KnownFolder folder) MIJIN_NOEXCEPT
auto getKnownFolderPath = [](REFKNOWNFOLDERID rfid) -> fs::path
{
WSTR path = nullptr;
WCHAR* path = nullptr;
if (!SUCCEEDED(SHGetKnownFolderPath(rfid, KF_FLAG_DEFAULT, nullptr, &path)))
{
CoTaskMemFree(path);
@ -122,6 +122,8 @@ std::vector<fs::path> getAllConfigFolders(IncludeUser includeUser, IncludeSystem
}
}
}
#else
(void) includeSystem;
#endif
return result;
}
@ -144,6 +146,8 @@ std::vector<fs::path> getAllDataFolders(IncludeUser includeUser, IncludeSystem i
}
}
}
#else
(void) includeSystem;
#endif
return result;
}