Recast: build navmesh directly into the game's load path

The engine loads it from here during development, store the file directly there so we can hot reload it into the game.
This commit is contained in:
Kawe Mazidjatari 2024-10-22 12:02:22 +02:00
parent fc4fabd116
commit fda4e694d6

View File

@ -1252,7 +1252,7 @@ bool Editor::loadAll(std::string path, const bool fullPath)
if (!fullPath) // Load from model name (e.g. "mp_rr_box").
{
fs::path p = "..\\maps\\navmesh\\";
fs::path p = "..\\platform\\maps\\navmesh\\";
if (fs::is_directory(p))
{
path.insert(0, p.string());
@ -1367,7 +1367,7 @@ void Editor::saveAll(std::string path, const dtNavMesh* mesh)
if (!mesh)
return;
fs::path p = "..\\maps\\navmesh\\";
fs::path p = "..\\platform\\maps\\navmesh\\";
if (fs::is_directory(p))
{
path.insert(0, p.string());