From 1c0c928856f90d9337d4d895e85a33608bb85cd8 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Mon, 3 Mar 2025 17:26:29 +0100 Subject: [PATCH] Fixed known folders detection for Windows (at least compilation). --- source/mijin/platform/folders.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/mijin/platform/folders.cpp b/source/mijin/platform/folders.cpp index aafd838..6b0dd12 100644 --- a/source/mijin/platform/folders.cpp +++ b/source/mijin/platform/folders.cpp @@ -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 getAllConfigFolders(IncludeUser includeUser, IncludeSystem } } } +#else + (void) includeSystem; #endif return result; } @@ -144,6 +146,8 @@ std::vector getAllDataFolders(IncludeUser includeUser, IncludeSystem i } } } +#else + (void) includeSystem; #endif return result; }