From ddcb84be33be51fc38f0b25c93bd3971332d4ff1 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 23 Feb 2024 17:36:47 +0100 Subject: [PATCH] Fix Windows std::filesystem::path conversion error --- src/core/src/FilesystemUtil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/src/FilesystemUtil.cpp b/src/core/src/FilesystemUtil.cpp index 59f4c4bc..0e3db707 100644 --- a/src/core/src/FilesystemUtil.cpp +++ b/src/core/src/FilesystemUtil.cpp @@ -32,9 +32,8 @@ std::filesystem::path getCesiumCacheDirectory() { // Should we create the directory if it doesn't exist? It's hard to believe that Omniverse // won't have already created it. } - std::string homeDir = getUserHomeDirectory(); - if (!homeDir.empty()) { - std::filesystem::path homeDirPath(homeDir); + auto homeDirPath = getUserHomeDirectory(); + if (!homeDirPath.empty()) { auto cacheDirPath = homeDirPath / ".nvidia-omniverse"; if (exists(cacheDirPath)) { return cacheDirPath;