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

chore: do not use relative include paths

This commit is contained in:
Jan Laupetin
2025-11-06 20:22:41 +01:00
parent a8456f88a4
commit b7a250eb10
10 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,6 +1,6 @@
#include "ClipMapLinker.h" #include "ClipMapLinker.h"
#include "../BSPUtil.h" #include "Game/T6/BSP/BSPUtil.h"
using namespace T6; using namespace T6;
@@ -499,7 +499,7 @@ namespace BSP
} }
// the reinterpret_cast is used as triIndices is just a pointer to an array of indicies, and static_cast can't safely do the conversion // the reinterpret_cast is used as triIndices is just a pointer to an array of indicies, and static_cast can't safely do the conversion
clipMap->triCount = static_cast<int>(triIndexVec.size() / 3); clipMap->triCount = static_cast<int>(triIndexVec.size() / 3);
clipMap->triIndices = reinterpret_cast<uint16_t(*)[3]>(m_memory.Alloc<uint16_t>(triIndexVec.size())); clipMap->triIndices = reinterpret_cast<uint16_t (*)[3]>(m_memory.Alloc<uint16_t>(triIndexVec.size()));
memcpy(clipMap->triIndices, &triIndexVec[0], sizeof(uint16_t) * triIndexVec.size()); memcpy(clipMap->triIndices, &triIndexVec[0], sizeof(uint16_t) * triIndexVec.size());
// partitions are "containers" for vertices. BSP tree leafs contain a list of these partitions to determine the collision within a leaf. // partitions are "containers" for vertices. BSP tree leafs contain a list of these partitions to determine the collision within a leaf.

View File

@@ -1,8 +1,8 @@
#pragma once #pragma once
#include "../BSP.h"
#include "../BSPCalculation.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "Game/T6/BSP/BSPCalculation.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,6 +1,6 @@
#include "GfxWorldLinker.h" #include "GfxWorldLinker.h"
#include "../BSPUtil.h" #include "Game/T6/BSP/BSPUtil.h"
#include "Utils/Alignment.h" #include "Utils/Alignment.h"
#include "Utils/Pack.h" #include "Utils/Pack.h"

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,6 +1,6 @@
#include "MapEntsLinker.h" #include "MapEntsLinker.h"
#include "../BSPUtil.h" #include "Game/T6/BSP/BSPUtil.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "../BSP.h"
#include "Asset/IAssetCreator.h" #include "Asset/IAssetCreator.h"
#include "Game/T6/BSP/BSP.h"
#include "SearchPath/ISearchPath.h" #include "SearchPath/ISearchPath.h"
#include "Utils/MemoryManager.h" #include "Utils/MemoryManager.h"