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,32 @@
#pragma once
#include "RE/B/BSResource_FileID.h"
namespace RE::BSResource
{
class ID :
public FileID // 0
{
public:
ID() = default;
ID(const ID&) noexcept = default;
ID(const char* a_path) noexcept
{
GenerateFromPath(a_path);
}
[[nodiscard]] bool operator==(const ID&) const noexcept = default;
void GenerateFromPath(const char* a_path)
{
using func_t = decltype(&ID::GenerateFromPath);
static REL::Relocation<func_t> func{ RE::ID::BSResource::ID::GenerateFromPath };
return func(this, a_path);
}
// members
std::uint32_t dir{ 0 }; // 8
};
static_assert(sizeof(ID) == 0xC);
}