diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-06 14:06:20 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-07-06 15:36:47 +0200 |
commit | 134b602b959864b4c04b9762152d55dab02efa0b (patch) | |
tree | 724553d03234388a1bac8a1e62fa8ee58144a5ee /src/tools/vmap4_assembler/TileAssembler.h | |
parent | f40c4e32182d7696b234d0eda5e1de6cd6f273ae (diff) |
Tools/vmap_assembler: Use boost::filesystem::path for creating filenames
(cherry picked from commit 51d1ff11bcd29ca5b58ce24b622b1634d1366873)
Diffstat (limited to 'src/tools/vmap4_assembler/TileAssembler.h')
-rw-r--r-- | src/tools/vmap4_assembler/TileAssembler.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/vmap4_assembler/TileAssembler.h b/src/tools/vmap4_assembler/TileAssembler.h index 3586a9daec6..51325742888 100644 --- a/src/tools/vmap4_assembler/TileAssembler.h +++ b/src/tools/vmap4_assembler/TileAssembler.h @@ -18,15 +18,15 @@ #ifndef _TILEASSEMBLER_H_ #define _TILEASSEMBLER_H_ -#include <G3D/Vector3.h> +#include "ModelInstance.h" +#include "WorldModel.h" #include <G3D/Matrix3.h> +#include <G3D/Vector3.h> +#include <boost/filesystem/path.hpp> #include <deque> #include <map> #include <set> -#include "ModelInstance.h" -#include "WorldModel.h" - namespace VMAP { /** @@ -87,19 +87,19 @@ namespace VMAP uint32 RootWMOID; std::vector<GroupModel_Raw> groupsArray; - bool Read(const char * path); + bool Read(boost::filesystem::path const& path); }; class TileAssembler { private: - std::string iSrcDir; - std::string iDestDir; + boost::filesystem::path iSrcDir; + boost::filesystem::path iDestDir; uint32 iThreads; std::set<std::string> spawnedModelFiles; public: - TileAssembler(std::string srcDirName, std::string destDirName, uint32 threads); + TileAssembler(std::string const& srcDirName, std::string const& destDirName, uint32 threads); bool convertWorld2(); bool convertMap(MapSpawns& data) const; @@ -107,7 +107,7 @@ namespace VMAP bool calculateTransformedBound(ModelSpawn &spawn) const; void exportGameobjectModels(); - bool convertRawFile(const std::string& pModelFilename); + bool convertRawFile(const std::string& pModelFilename) const; }; } // VMAP |