1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 22:06:40 +00:00

Log path to navmesh.db

This commit is contained in:
elsid 2023-07-21 23:54:27 +02:00
parent a5ba721eca
commit 9bff292a29
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -15,10 +15,11 @@ namespace DetourNavigator
std::unique_ptr<NavMeshDb> 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<NavMeshDb>(
Files::pathToUnicodeString(userDataPath / "navmesh.db"), settings.mMaxDbFileSize);
db = std::make_unique<NavMeshDb>(path, settings.mMaxDbFileSize);
}
catch (const std::exception& e)
{