Tools/vmap_assembler: Organize vmap files into directory-per-map

This commit is contained in:
Shauren
2024-07-06 14:29:54 +02:00
parent 51d1ff11bc
commit 518fe1fd1e
3 changed files with 6 additions and 3 deletions

View File

@@ -208,7 +208,10 @@ namespace VMAP
for (uint32 i = 0; i < mapSpawns.size(); ++i)
modelNodeIdx.try_emplace(mapSpawns[i]->ID, i);
boost::filesystem::path mapDestDir = iDestDir;
boost::filesystem::path mapDestDir = iDestDir / Trinity::StringFormat("{:04}", data.MapId);
boost::system::error_code ec;
boost::filesystem::create_directory(mapDestDir, ec);
// write map tree file
boost::filesystem::path mapfilename = mapDestDir / Trinity::StringFormat("{:04}.vmtree", data.MapId);