Skip to content

Commit e04ef4a

Browse files
committed
fix: add clang-cl support
1 parent 7d0ab2e commit e04ef4a

32 files changed

Lines changed: 96 additions & 174 deletions

include/F4SE/Interfaces.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ namespace F4SE
234234

235235
[[nodiscard]] void* GetEventDispatcher(std::uint32_t a_dispatcherID) const
236236
{
237-
GetProxy().GetEventDispatcher(a_dispatcherID);
237+
return GetProxy().GetEventDispatcher(a_dispatcherID);
238238
}
239239
};
240240

include/RE/A/ActorUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace RE
6161
};
6262
static_assert(sizeof(ArmorRatingVisitor) == 0x40);
6363

64-
static float GetEquippedArmorDamageResistance(Actor* a_actor, const ActorValueInfo* a_info)
64+
static inline float GetEquippedArmorDamageResistance(Actor* a_actor, const ActorValueInfo* a_info)
6565
{
6666
using func_t = decltype(ActorUtils::GetEquippedArmorDamageResistance);
6767
static REL::Relocation<func_t> func{ ID::ActorUtils::GetEquippedArmorDamageResistance };

include/RE/B/BGSCharacterTint.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ namespace RE
148148
virtual EntryType GetType(); // 28
149149

150150
// Members
151-
Entry* templateEntry; // 08
152-
const std::uint16_t idLink; // 10
153-
std::uint8_t tingingValue; // 12
151+
Entry* templateEntry; // 08
152+
std::uint16_t idLink; // 10
153+
std::uint8_t tingingValue; // 12
154154
};
155155
static_assert(sizeof(Entry) == 0x18);
156156

include/RE/B/BGSInventoryItem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace RE
8484
{}
8585

8686
// override (StackDataCompareFunctor)
87-
bool CompareData(const BGSInventoryItem::Stack&) override { return this->extra == extra; }
87+
bool CompareData(const BGSInventoryItem::Stack&) override { return true; } // this->extra == extra; ??
8888

8989
// members
9090
const ExtraDataList* extra; // 08
@@ -212,7 +212,7 @@ namespace RE
212212
return func(this, a_index);
213213
}
214214

215-
[[nodiscard]] void MergeStacks()
215+
void MergeStacks()
216216
{
217217
using func_t = decltype(&BGSInventoryItem::MergeStacks);
218218
static REL::Relocation<func_t> func{ ID::BGSInventoryItem::MergeStacks };

include/RE/B/BSGraphics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace RE
166166
std::uint32_t id{ 0 }; // 00
167167
REX::W32::ID3D11DomainShader* shader{ nullptr }; // 08
168168
std::uint32_t byteCodeSize{ 0 }; // 10
169-
BSGraphics::ConstantGroup constantBuffers[3]{ 0 }; // 18
169+
BSGraphics::ConstantGroup constantBuffers[3]{}; // 18
170170
std::uint64_t shaderDesc{ 0 }; // 60
171171
std::int8_t constantTable[32]{ 0 }; // 68
172172
};

include/RE/B/BSScaleformTranslator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "RE/B/BSStreamParser.h"
55
#include "RE/B/BSTranslator.h"
66
#include "RE/S/Setting.h"
7-
#include "Scaleform/G/GFX_Translator.h"
7+
#include "Scaleform/G/GFx_Translator.h"
88

99
namespace RE
1010
{

include/RE/B/BSScriptUtil.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "RE/B/BSScript_Object.h"
88
#include "RE/B/BSScript_ObjectTypeInfo.h"
99
#include "RE/B/BSScript_StackFrame.h"
10+
#include "RE/B/BSScript_Struct.h"
1011
#include "RE/B/BSScript_TypeInfo.h"
1112
#include "RE/E/ENUM_FORM_ID.h"
1213
#include "RE/G/GameScript.h"

include/RE/B/BSScript_StructTypeInfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "RE/B/BSFixedString.h"
44
#include "RE/B/BSScript_IComplexType.h"
5+
#include "RE/B/BSScript_ObjectTypeInfo.h"
56
#include "RE/B/BSScript_TypeInfo.h"
67
#include "RE/B/BSScript_Variable.h"
78
#include "RE/B/BSTArray.h"

include/RE/B/BSStringT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ namespace RE
153153
size_type _capacity{ 0 }; // ??
154154
};
155155

156-
using BSString = BSStringT<char, -1, DynamicMemoryManagementPol>;
156+
using BSString = BSStringT<char, static_cast<std::uint16_t>(-1), DynamicMemoryManagementPol>;
157157
static_assert(sizeof(BSString) == 0x10);
158158

159-
using BSStringW = BSStringT<wchar_t, -1, DynamicMemoryManagementPol>;
159+
using BSStringW = BSStringT<wchar_t, static_cast<std::uint16_t>(-1), DynamicMemoryManagementPol>;
160160
static_assert(sizeof(BSStringW) == 0x10);
161161

162162
template <std::uint16_t N>

include/RE/B/BSTEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ namespace RE
178178
BSAutoLock l{ dataLock };
179179
T event;
180180
event.optionalValue = optionalValue;
181-
a_event.valueEventSink.ProcessEvent(event, nullptr);
181+
return a_event.valueEventSink.ProcessEvent(event, nullptr);
182182
}
183183

184184
// members

0 commit comments

Comments
 (0)