docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -0,0 +1,40 @@
#pragma once
#include "RE/B/BSResource_Location.h"
#include "RE/B/BSSpinLock.h"
#include "RE/B/BSTSingleton.h"
namespace RE::BSResource
{
class __declspec(novtable) GlobalLocations :
public Location, // 00
public BSTSingletonSDM<GlobalLocations> // 10
{
public:
static constexpr auto RTTI{ RTTI::BSResource____GlobalLocations };
static constexpr auto VTABLE{ VTABLE::BSResource____GlobalLocations };
class Entry
{
public:
// members
Entry* next; // 00
Location* location; // 08
std::uint32_t priority; // 10
};
static_assert(sizeof(Entry) == 0x18);
[[nodiscard]] static GlobalLocations* GetSingleton()
{
static REL::Relocation<GlobalLocations**> singleton{ RE::ID::BSResource_GlobalLocations::Singleton };
return *singleton;
}
// members
BSSpinLock lock; // 14
Entry* head; // 20
Entry* pendingMount; // 28
Entry* free; // 30
};
static_assert(sizeof(GlobalLocations) == 0x38);
}