2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 13:12:06 +00:00

Refactored clipmap generation, further refactored other files to better use c++

This commit is contained in:
LJW-Dev
2025-10-27 19:07:21 +08:00
parent 9d4c32b6b4
commit fc88b9af80
11 changed files with 338 additions and 421 deletions

View File

@@ -193,7 +193,8 @@ namespace BSP
{
std::unique_ptr<BSPData> createBSPData(std::string& mapName, ISearchPath& searchPath)
{
std::string gfxFbxPath = BSPUtil::getFileNameForBSPAsset("map_gfx.fbx");
std::string gfxFbxFileName = "map_gfx.fbx";
std::string gfxFbxPath = BSPUtil::getFileNameForBSPAsset(gfxFbxFileName);
auto gfxFile = searchPath.Open(gfxFbxPath);
if (!gfxFile.IsOpen())
{
@@ -222,7 +223,8 @@ namespace BSP
}
ufbx_scene* colScene;
std::string colFbxPath = BSPUtil::getFileNameForBSPAsset("map_col.fbx");
std::string colFbxFileName = "map_col.fbx";
std::string colFbxPath = BSPUtil::getFileNameForBSPAsset(colFbxFileName);
auto colFile = searchPath.Open(colFbxPath);
if (!colFile.IsOpen())
{