From 9bff292a29f28e1b9515dc86633f426d35cd4739 Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 21 Jul 2023 23:54:27 +0200 Subject: [PATCH] Log path to navmesh.db --- components/detournavigator/navigator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/detournavigator/navigator.cpp b/components/detournavigator/navigator.cpp index a77703a559..30f64aeacd 100644 --- a/components/detournavigator/navigator.cpp +++ b/components/detournavigator/navigator.cpp @@ -15,10 +15,11 @@ namespace DetourNavigator std::unique_ptr db; if (settings.mEnableNavMeshDiskCache) { + const std::string path = Files::pathToUnicodeString(userDataPath / "navmesh.db"); + Log(Debug::Info) << "Using " << path << " to store navigation mesh cache"; try { - db = std::make_unique( - Files::pathToUnicodeString(userDataPath / "navmesh.db"), settings.mMaxDbFileSize); + db = std::make_unique(path, settings.mMaxDbFileSize); } catch (const std::exception& e) {