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,19 @@
#pragma once
#include "RE/B/BSResource_ErrorCode.h"
#include "RE/B/BSTSmartPointer.h"
namespace RE::BSResource
{
class Location;
class Stream;
[[nodiscard]] ErrorCode GetOrCreateStream(const char* a_fileName, BSTSmartPointer<Stream>& a_result, bool a_writable = false, Location* a_optionalStart = nullptr);
inline void RegisterLocation(Location* a_location, std::uint32_t a_priority)
{
using func_t = decltype(&RegisterLocation);
static REL::Relocation<func_t> func{ RE::ID::BSResource::RegisterLocation };
return func(a_location, a_priority);
}
}