Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 6aeb6f9

Browse files
committed
[X-CELL] OG added BSTSmartPointer
1 parent 17c4760 commit 6aeb6f9

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

depends/f4se_og/f4se/f4se/GameTypes.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ struct BSIntrusiveRefCounted
1313
volatile SInt32 m_refCount; // 00
1414
};
1515

16+
// Not actually implemented, just a wrapper
17+
template <typename T>
18+
class BSTSmartPointer
19+
{
20+
public:
21+
operator bool() const noexcept { return static_cast<bool>(_ptr); }
22+
23+
T* get() const noexcept { return _ptr; }
24+
25+
T& operator*() const
26+
{
27+
return *_ptr;
28+
}
29+
30+
T* operator->() const
31+
{
32+
return _ptr;
33+
}
34+
35+
T* _ptr;
36+
};
37+
1638
// 04
1739
struct BSNonReentrantSpinLock
1840
{

fomod/info.xml

0 Bytes
Binary file not shown.

version/build_version.txt

0 Bytes
Binary file not shown.

version/resource_version2.h

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)