2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 21:22:07 +00:00

chore: do not make filename constants separate variables

This commit is contained in:
Jan Laupetin
2025-11-10 20:40:50 +01:00
parent 9114cf5d7d
commit 049fa2b8ae
3 changed files with 6 additions and 11 deletions

View File

@@ -198,9 +198,8 @@ namespace BSP
{
std::unique_ptr<BSPData> createBSPData(const std::string& mapName, ISearchPath& searchPath)
{
std::string gfxFbxFileName = "map_gfx.fbx";
std::string gfxFbxPath = BSPUtil::getFileNameForBSPAsset(gfxFbxFileName);
auto gfxFile = searchPath.Open(gfxFbxPath);
const auto gfxFbxPath = BSPUtil::getFileNameForBSPAsset("map_gfx.fbx");
const auto gfxFile = searchPath.Open(gfxFbxPath);
if (!gfxFile.IsOpen())
{
con::error("Failed to open map gfx fbx file: {}", gfxFbxPath);
@@ -228,8 +227,7 @@ namespace BSP
}
ufbx_scene* colScene;
std::string colFbxFileName = "map_col.fbx";
const auto colFbxPath = BSPUtil::getFileNameForBSPAsset(colFbxFileName);
const auto colFbxPath = BSPUtil::getFileNameForBSPAsset("map_col.fbx");
const auto colFile = searchPath.Open(colFbxPath);
if (!colFile.IsOpen())
{