Skip to content

Commit d8b201e

Browse files
shad0wshayd3github-actions[bot]
authored andcommitted
maintenance
1 parent bc22f17 commit d8b201e

303 files changed

Lines changed: 19490 additions & 19490 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AddressLibDecoder/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main(int a_argc, char* a_argv[])
2424
{
2525
try {
2626
mmio::mapped_file_source input;
27-
std::ofstream output;
27+
std::ofstream output;
2828

2929
for (int i = 1; i < a_argc; ++i) {
3030
std::filesystem::path filename = a_argv[static_cast<std::size_t>(i)];

AddressLibGen/src/main.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Version
3838
_impl(a_version)
3939
{}
4040

41-
[[nodiscard]] constexpr reference operator[](std::size_t a_idx) noexcept { return _impl[a_idx]; }
41+
[[nodiscard]] constexpr reference operator[](std::size_t a_idx) noexcept { return _impl[a_idx]; }
4242
[[nodiscard]] constexpr const_reference operator[](std::size_t a_idx) const noexcept { return _impl[a_idx]; }
4343

4444
[[nodiscard]] int constexpr compare(const Version& a_rhs) const noexcept
@@ -108,19 +108,19 @@ class Mapping
108108
void link(Mapping* a_mapping) { _links.insert(a_mapping); }
109109

110110
private:
111-
std::set<Mapping*> _links;
111+
std::set<Mapping*> _links;
112112
std::optional<std::uint64_t> _id;
113113
};
114114

115115
using files_t = std::vector<std::tuple<Version, Version, std::filesystem::path>>;
116116

117117
[[nodiscard]] files_t get_files(const std::filesystem::path& a_root)
118118
{
119-
files_t results;
119+
files_t results;
120120
std::wregex regex(L"(\\d+)\\.(\\d+)\\.(\\d+)_(\\d+)\\.(\\d+)\\.(\\d+)\\.txt"s, std::regex::ECMAScript);
121121
for (const auto& entry : std::filesystem::directory_iterator(a_root)) {
122122
if (entry.is_regular_file()) {
123-
const auto filename = entry.path().filename();
123+
const auto filename = entry.path().filename();
124124
std::wsmatch matches;
125125
if (std::regex_match(filename.native(), matches, regex) && matches.size() == 7) {
126126
results.emplace_back();
@@ -150,12 +150,12 @@ using version_map = std::map<Version, offset_map>;
150150

151151
[[nodiscard]] version_map load_mappings(const files_t& a_files)
152152
{
153-
version_map map;
154-
std::ifstream file;
153+
version_map map;
154+
std::ifstream file;
155155
std::stringstream ss;
156-
std::string line;
157-
std::string lbuf;
158-
std::string rbuf;
156+
std::string line;
157+
std::string lbuf;
158+
std::string rbuf;
159159

160160
const auto find_or_emplace_version = [&map](const Version& a_version) -> offset_map& {
161161
auto it = map.find(a_version);
@@ -221,13 +221,13 @@ void assign_ids(version_map& a_versionMap)
221221
void write_binaries(version_map& a_versionMap)
222222
{
223223
std::ofstream file;
224-
const auto binary_write = [&file](auto&& a_data) {
225-
file.write(
226-
reinterpret_cast<const char*>(std::addressof(a_data)),
227-
sizeof(std::remove_reference_t<decltype(a_data)>));
224+
const auto binary_write = [&file](auto&& a_data) {
225+
file.write(
226+
reinterpret_cast<const char*>(std::addressof(a_data)),
227+
sizeof(std::remove_reference_t<decltype(a_data)>));
228228
};
229229

230-
std::string filename;
230+
std::string filename;
231231
std::vector<std::pair<std::uint64_t, Mapping>> mappings;
232232
for (const auto& [ver, offsetMap] : a_versionMap) {
233233
filename = "version-"sv;

CommonLibF4/include/F4SE/API.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ namespace F4SE
2020

2121
[[nodiscard]] std::string_view GetPluginName() noexcept;
2222
[[nodiscard]] std::string_view GetPluginAuthor() noexcept;
23-
[[nodiscard]] REL::Version GetPluginVersion() noexcept;
23+
[[nodiscard]] REL::Version GetPluginVersion() noexcept;
2424

25-
[[nodiscard]] REL::Version GetF4SEVersion() noexcept;
26-
[[nodiscard]] PluginHandle GetPluginHandle() noexcept;
27-
[[nodiscard]] std::uint32_t GetReleaseIndex() noexcept;
25+
[[nodiscard]] REL::Version GetF4SEVersion() noexcept;
26+
[[nodiscard]] PluginHandle GetPluginHandle() noexcept;
27+
[[nodiscard]] std::uint32_t GetReleaseIndex() noexcept;
2828
[[nodiscard]] std::optional<PluginInfo> GetPluginInfo(std::string_view a_plugin) noexcept;
29-
[[nodiscard]] std::string_view GetSaveFolderName() noexcept;
29+
[[nodiscard]] std::string_view GetSaveFolderName() noexcept;
3030

31-
[[nodiscard]] const MessagingInterface* GetMessagingInterface() noexcept;
32-
[[nodiscard]] const ScaleformInterface* GetScaleformInterface() noexcept;
33-
[[nodiscard]] const PapyrusInterface* GetPapyrusInterface() noexcept;
31+
[[nodiscard]] const MessagingInterface* GetMessagingInterface() noexcept;
32+
[[nodiscard]] const ScaleformInterface* GetScaleformInterface() noexcept;
33+
[[nodiscard]] const PapyrusInterface* GetPapyrusInterface() noexcept;
3434
[[nodiscard]] const SerializationInterface* GetSerializationInterface() noexcept;
35-
[[nodiscard]] const TaskInterface* GetTaskInterface() noexcept;
36-
[[nodiscard]] const ObjectInterface* GetObjectInterface() noexcept;
37-
[[nodiscard]] const TrampolineInterface* GetTrampolineInterface() noexcept;
35+
[[nodiscard]] const TaskInterface* GetTaskInterface() noexcept;
36+
[[nodiscard]] const ObjectInterface* GetObjectInterface() noexcept;
37+
[[nodiscard]] const TrampolineInterface* GetTrampolineInterface() noexcept;
3838

3939
void AllocTrampoline(std::size_t a_size) noexcept;
4040
}

CommonLibF4/include/F4SE/Impl/PCH.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ namespace F4SE
9595
template <class C, class K>
9696
concept transparent_comparator =
9797
requires(
98-
const K& a_transparent,
98+
const K& a_transparent,
9999
const typename C::key_type& a_key,
100-
typename C::key_compare& a_compare)
100+
typename C::key_compare& a_compare)
101101
{
102102
typename C::key_compare::is_transparent;
103103
// clang-format off
@@ -132,10 +132,10 @@ namespace F4SE
132132
}
133133

134134
[[nodiscard]] consteval const_reference back() const noexcept { return (*this)[size() - 1]; }
135-
[[nodiscard]] consteval const_pointer data() const noexcept { return c; }
135+
[[nodiscard]] consteval const_pointer data() const noexcept { return c; }
136136
[[nodiscard]] consteval const_reference front() const noexcept { return (*this)[0]; }
137-
[[nodiscard]] consteval size_type length() const noexcept { return N; }
138-
[[nodiscard]] consteval size_type size() const noexcept { return length(); }
137+
[[nodiscard]] consteval size_type length() const noexcept { return N; }
138+
[[nodiscard]] consteval size_type size() const noexcept { return length(); }
139139

140140
char_type c[N]{ static_cast<char_type>('\0') };
141141
};
@@ -254,13 +254,13 @@ namespace F4SE
254254
counted_function_iterator operator++(int) noexcept
255255
{
256256
counted_function_iterator tmp{ *this };
257-
operator++();
257+
operator++();
258258
return tmp;
259259
}
260260

261261
private:
262262
std::optional<F> _fn;
263-
std::size_t _left{ 0 };
263+
std::size_t _left{ 0 };
264264
};
265265

266266
// backwards compat
@@ -355,7 +355,7 @@ namespace F4SE
355355
template <class T>
356356
void memzero(volatile T* a_ptr, std::size_t a_size = sizeof(T))
357357
{
358-
const auto begin = reinterpret_cast<volatile char*>(a_ptr);
358+
const auto begin = reinterpret_cast<volatile char*>(a_ptr);
359359
constexpr char val{ 0 };
360360
std::fill_n(begin, a_size, val);
361361
}
@@ -369,12 +369,12 @@ namespace F4SE
369369
};
370370

371371
const std::filesystem::path p = a_loc.file_name();
372-
const auto filename = p.generic_string();
373-
std::string_view fileview = filename;
372+
const auto filename = p.generic_string();
373+
std::string_view fileview = filename;
374374

375375
constexpr auto npos = std::string::npos;
376-
std::size_t pos = npos;
377-
std::size_t off = 0;
376+
std::size_t pos = npos;
377+
std::size_t off = 0;
378378
for (const auto& dir : directories) {
379379
pos = fileview.find(dir);
380380
if (pos != npos) {
@@ -453,7 +453,7 @@ namespace F4SE
453453
union
454454
{
455455
std::remove_cv_t<std::remove_reference_t<From>> from;
456-
std::remove_cv_t<std::remove_reference_t<To>> to;
456+
std::remove_cv_t<std::remove_reference_t<To>> to;
457457
};
458458

459459
from = std::forward<From>(a_from);

CommonLibF4/include/F4SE/Interfaces.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ namespace F4SE
122122
}
123123

124124
public:
125-
[[nodiscard]] REL::Version EditorVersion() const noexcept { return MakeVersion(GetProxy().editorVersion); }
126-
[[nodiscard]] REL::Version F4SEVersion() const noexcept { return MakeVersion(GetProxy().f4seVersion); }
127-
[[nodiscard]] PluginHandle GetPluginHandle() const { return GetProxy().GetPluginHandle(); }
128-
[[nodiscard]] std::uint32_t GetReleaseIndex() const { return GetProxy().GetReleaseIndex(); }
125+
[[nodiscard]] REL::Version EditorVersion() const noexcept { return MakeVersion(GetProxy().editorVersion); }
126+
[[nodiscard]] REL::Version F4SEVersion() const noexcept { return MakeVersion(GetProxy().f4seVersion); }
127+
[[nodiscard]] PluginHandle GetPluginHandle() const { return GetProxy().GetPluginHandle(); }
128+
[[nodiscard]] std::uint32_t GetReleaseIndex() const { return GetProxy().GetReleaseIndex(); }
129129
[[nodiscard]] std::string_view GetSaveFolderName() const { return GetProxy().GetSaveFolderName(); }
130-
[[nodiscard]] bool IsEditor() const noexcept { return GetProxy().isEditor != 0; }
131-
[[nodiscard]] REL::Version RuntimeVersion() const noexcept { return MakeVersion(GetProxy().runtimeVersion); }
130+
[[nodiscard]] bool IsEditor() const noexcept { return GetProxy().isEditor != 0; }
131+
[[nodiscard]] REL::Version RuntimeVersion() const noexcept { return MakeVersion(GetProxy().runtimeVersion); }
132132
};
133133

134134
class LoadInterface :
@@ -181,10 +181,10 @@ namespace F4SE
181181

182182
struct Message
183183
{
184-
const char* sender;
184+
const char* sender;
185185
std::uint32_t type;
186186
std::uint32_t dataLen;
187-
void* data;
187+
void* data;
188188
};
189189

190190
using EventCallback = void F4SEAPI(Message* a_msg);
@@ -236,7 +236,7 @@ namespace F4SE
236236
kVersion = 1,
237237
};
238238

239-
using EventCallback = void F4SEAPI(const SerializationInterface* a_intfc);
239+
using EventCallback = void F4SEAPI(const SerializationInterface* a_intfc);
240240
using FormDeleteCallback = void F4SEAPI(std::uint64_t a_handle);
241241

242242
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().version; }
@@ -398,9 +398,9 @@ namespace F4SE
398398
kVersion = 1
399399
};
400400

401-
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
402-
[[nodiscard]] DelayFunctorManager& GetDelayFunctorManager() const { return GetProxy().GetDelayFunctorManager(); }
403-
[[nodiscard]] ObjectRegistry& GetObjectRegistry() const { return GetProxy().GetObjectRegistry(); }
401+
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
402+
[[nodiscard]] DelayFunctorManager& GetDelayFunctorManager() const { return GetProxy().GetDelayFunctorManager(); }
403+
[[nodiscard]] ObjectRegistry& GetObjectRegistry() const { return GetProxy().GetObjectRegistry(); }
404404
[[nodiscard]] PersistentObjectStorage& GetPersistentObjectStorage() const { return GetProxy().GetPersistentObjectStorage(); }
405405
};
406406

@@ -419,8 +419,8 @@ namespace F4SE
419419
};
420420

421421
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
422-
[[nodiscard]] void* AllocateFromBranchPool(std::size_t a_size) const;
423-
[[nodiscard]] void* AllocateFromLocalPool(std::size_t a_size) const;
422+
[[nodiscard]] void* AllocateFromBranchPool(std::size_t a_size) const;
423+
[[nodiscard]] void* AllocateFromLocalPool(std::size_t a_size) const;
424424
};
425425

426426
struct PluginInfo
@@ -431,7 +431,7 @@ namespace F4SE
431431
};
432432

433433
std::uint32_t infoVersion;
434-
const char* name;
434+
const char* name;
435435
std::uint32_t version;
436436
};
437437

@@ -478,16 +478,16 @@ namespace F4SE
478478
[[nodiscard]] static const PluginVersionData* GetSingleton() noexcept;
479479

480480
const std::uint32_t dataVersion{ kVersion };
481-
std::uint32_t pluginVersion = 0;
482-
char pluginName[256] = {};
483-
char author[256] = {};
484-
std::uint32_t addressIndependence;
485-
std::uint32_t structureIndependence;
486-
std::uint32_t compatibleVersions[16] = {};
487-
std::uint32_t xseMinimum = 0;
481+
std::uint32_t pluginVersion = 0;
482+
char pluginName[256] = {};
483+
char author[256] = {};
484+
std::uint32_t addressIndependence;
485+
std::uint32_t structureIndependence;
486+
std::uint32_t compatibleVersions[16] = {};
487+
std::uint32_t xseMinimum = 0;
488488
const std::uint32_t reservedNonBreaking = 0;
489489
const std::uint32_t reservedBreaking = 0;
490-
const std::uint8_t reserved[512] = {};
490+
const std::uint8_t reserved[512] = {};
491491

492492
private:
493493
static constexpr void SetCharBuffer(std::string_view a_src, std::span<char> a_dst) noexcept

CommonLibF4/include/F4SE/Trampoline.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ namespace F4SE
129129

130130
private:
131131
[[nodiscard]] static void* do_create(std::size_t a_size, std::uintptr_t a_address);
132-
[[nodiscard]] void* do_allocate(std::size_t a_size);
132+
[[nodiscard]] void* do_allocate(std::size_t a_size);
133133

134134
void write_5branch(std::uintptr_t a_src, std::uintptr_t a_dst, std::uint8_t a_opcode);
135135
void write_6branch(std::uintptr_t a_src, std::uintptr_t a_dst, std::uint8_t a_modrm);
@@ -195,11 +195,11 @@ namespace F4SE
195195

196196
std::map<std::uintptr_t, std::byte*> _5branches;
197197
std::map<std::uintptr_t, std::byte*> _6branches;
198-
std::string _name{ "Default Trampoline"sv };
199-
deleter_type _deleter;
200-
std::byte* _data{ nullptr };
201-
std::size_t _capacity{ 0 };
202-
std::size_t _size{ 0 };
198+
std::string _name{ "Default Trampoline"sv };
199+
deleter_type _deleter;
200+
std::byte* _data{ nullptr };
201+
std::size_t _capacity{ 0 };
202+
std::size_t _size{ 0 };
203203
};
204204

205205
[[nodiscard]] Trampoline& GetTrampoline() noexcept;

CommonLibF4/include/RE/Bethesda/ActiveEffect.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,23 @@ namespace RE
6262
}
6363

6464
// members
65-
ActiveEffectReferenceEffectController hitEffectController; // 0C
66-
BSSoundHandle persistentSound; // 30
67-
ActorHandle caster; // 38
68-
NiPointer<NiNode> sourceNode; // 40
69-
MagicItem* spell; // 48
70-
EffectItem* effect; // 50
71-
MagicTarget* target; // 58
72-
TESBoundObject* source; // 60
73-
BSSimpleList<ReferenceEffect*>* hitEffects; // 68
74-
MagicItem* displacementSpell; // 70
75-
float elapsedSeconds; // 74
76-
float duration; // 78
77-
float magnitude; // 7C
78-
REX::EnumSet<Flags, std::uint32_t> flags; // 80
79-
REX::EnumSet<ConditionStatus, std::uint32_t> conditionStatus; // 84
80-
std::uint16_t uniqueID; // 8C
81-
REX::EnumSet<MagicSystem::CastingSource, std::uint32_t> castingSource; // 90
65+
ActiveEffectReferenceEffectController hitEffectController; // 0C
66+
BSSoundHandle persistentSound; // 30
67+
ActorHandle caster; // 38
68+
NiPointer<NiNode> sourceNode; // 40
69+
MagicItem* spell; // 48
70+
EffectItem* effect; // 50
71+
MagicTarget* target; // 58
72+
TESBoundObject* source; // 60
73+
BSSimpleList<ReferenceEffect*>* hitEffects; // 68
74+
MagicItem* displacementSpell; // 70
75+
float elapsedSeconds; // 74
76+
float duration; // 78
77+
float magnitude; // 7C
78+
REX::EnumSet<Flags, std::uint32_t> flags; // 80
79+
REX::EnumSet<ConditionStatus, std::uint32_t> conditionStatus; // 84
80+
std::uint16_t uniqueID; // 8C
81+
REX::EnumSet<MagicSystem::CastingSource, std::uint32_t> castingSource; // 90
8282
};
8383
static_assert(sizeof(ActiveEffect) == 0x98);
8484
}

0 commit comments

Comments
 (0)