Skip to content

Commit 88fa1bf

Browse files
committed
feat: shared changes
1 parent fdc1e96 commit 88fa1bf

62 files changed

Lines changed: 233 additions & 231 deletions

Some content is hidden

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

include/F4SE/F4SE.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
#include "F4SE/API.h"
66
#include "F4SE/InputMap.h"
77
#include "F4SE/Interfaces.h"
8-
#include "F4SE/Logger.h"
98
#include "F4SE/Trampoline.h"
109
#include "F4SE/Version.h"

include/F4SE/Impl/PCH.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
#pragma once
22

3-
#include <REX/Impl/PCH.h>
3+
#include <REL/REL.h>
4+
#include <REX/REX.h>
45

56
namespace F4SE
67
{
78
using namespace std::literals;
8-
namespace stl = XSE::stl;
99
}
1010

1111
namespace RE
1212
{
1313
using namespace std::literals;
14-
namespace stl = XSE::stl;
1514
}
1615

1716
namespace Scaleform
1817
{
1918
using namespace std::literals;
20-
namespace stl = XSE::stl;
2119
}
2220

2321
#include "RE/IDs.h"

include/F4SE/Interfaces.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ namespace F4SE
229229
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
230230

231231
bool RegisterListener(EventCallback* a_handler) const { return RegisterListener(a_handler, "F4SE"sv); }
232-
bool RegisterListener(EventCallback* a_handler, stl::zstring a_sender) const;
232+
bool RegisterListener(EventCallback* a_handler, std::string_view a_sender) const;
233233
bool Dispatch(std::uint32_t a_messageType, void* a_data, std::uint32_t a_dataLen, const char* a_receiver) const;
234234

235235
[[nodiscard]] void* GetEventDispatcher(std::uint32_t a_dispatcherID) const
@@ -256,7 +256,7 @@ namespace F4SE
256256

257257
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
258258

259-
bool Register(stl::zstring a_name, RegisterCallback* a_callback) const;
259+
bool Register(std::string_view a_name, RegisterCallback* a_callback) const;
260260
};
261261

262262
class SerializationInterface
@@ -372,7 +372,7 @@ namespace F4SE
372372

373373
bool Register(RegisterFunctions* a_callback) const;
374374

375-
void GetExternalEventRegistrations(stl::zstring a_eventName, void* a_data, RegistrantFunctor* a_functor) const
375+
void GetExternalEventRegistrations(std::string_view a_eventName, void* a_data, RegistrantFunctor* a_functor) const
376376
{
377377
GetProxy().GetExternalEventRegistrations(a_eventName.data(), a_data, reinterpret_cast<void*>(a_functor));
378378
}

include/F4SE/Logger.h

Lines changed: 0 additions & 39 deletions
This file was deleted.

include/RE/A/ActorUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace RE
1616

1717
ArmorRatingVisitorBase()
1818
{
19-
stl::emplace_vtable(this);
19+
REX::EMPLACE_VTABLE(this);
2020
}
2121

2222
ArmorRatingVisitorBase(const Actor* a_actor, bool a_checkEquipped)

include/RE/B/BGSCreatedObjectManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace RE
1616
class BSTCreatedObjectSmartPointerPolicy
1717
{
1818
public:
19-
static void Acquire(stl::not_null<T*> a_ptr)
19+
static void Acquire(T* a_ptr)
2020
{
2121
const auto manager = BGSCreatedObjectManager::GetSingleton();
2222
if (manager &&
@@ -26,7 +26,7 @@ namespace RE
2626
}
2727
}
2828

29-
static void Release(stl::not_null<T*> a_ptr)
29+
static void Release(T* a_ptr)
3030
{
3131
const auto manager = BGSCreatedObjectManager::GetSingleton();
3232
if (manager &&

include/RE/B/BGSInventoryItem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ namespace RE
119119
slotIndex(a_slotIndex),
120120
attach(a_attach)
121121
{
122-
stl::emplace_vtable(this);
122+
REX::EMPLACE_VTABLE(this);
123123
if (success) {
124124
*success = true;
125125
}
@@ -148,7 +148,7 @@ namespace RE
148148
SetHealthFunctor(float a_health) :
149149
health(a_health)
150150
{
151-
stl::emplace_vtable(this);
151+
REX::EMPLACE_VTABLE(this);
152152
}
153153

154154
// override (StackDataWriteFunctor)

include/RE/B/BGSObjectInstanceExtra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace RE
2626
BGSObjectInstanceExtra() :
2727
BSExtraData(TYPE)
2828
{
29-
stl::emplace_vtable(this);
29+
REX::EMPLACE_VTABLE(this);
3030
}
3131

3232
BGSObjectInstanceExtra(const BGSMod::Template::Item* a_item, TESForm* a_parentForm, const INSTANCE_FILTER* a_filter)

include/RE/B/BSExtraData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace RE
1919
BSExtraData(EXTRA_DATA_TYPE a_type) :
2020
type(a_type)
2121
{
22-
stl::emplace_vtable(this);
22+
REX::EMPLACE_VTABLE(this);
2323
}
2424

2525
virtual ~BSExtraData() = default; // 00

include/RE/B/BSFlattenedBoneTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace RE
3838
explicit BSFlattenedBoneTree(std::uint32_t a_numChildren) :
3939
NiNode(a_numChildren)
4040
{
41-
stl::emplace_vtable(this);
41+
REX::EMPLACE_VTABLE(this);
4242
}
4343

4444
F4_HEAP_REDEFINE_ALIGNED_NEW(BSFlattenedBoneTree);

0 commit comments

Comments
 (0)