docs: add plugin setup guide
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user