mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Tools/vmap_assembler: Organize vmap files into directory-per-map
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user