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,49 @@
#pragma once
#include "Scaleform/A/Array.h"
#include "Scaleform/A/Atomic.h"
#include "Scaleform/N/NewOverrideBase.h"
#include "Scaleform/R/RefCountBase.h"
namespace Scaleform
{
class __declspec(novtable) Waitable :
public RefCountBase<Waitable, 2> // 00
{
public:
using WaitHandler = void(void*);
class HandlerStruct
{
public:
// members
WaitHandler* handler; // 00
void* userData; // 08
};
static_assert(sizeof(HandlerStruct) == 0x10);
class HandlerArray :
public NewOverrideBase<2> // 00
{
public:
using SizePolicyType = ArrayConstPolicy<0, 16, true>;
using HandlerArrayType = Array<HandlerStruct, 2, SizePolicyType>;
void AddRef()
{
REX::TAtomicRef myRefCount{ refCount.value };
++myRefCount;
}
// members
AtomicInt<std::int32_t> refCount; // 00
HandlerArrayType handlers; // 08
Lock handlersLock; // 20
};
static_assert(sizeof(HandlerArray) == 0x48);
// members
HandlerArray* handlers; // 10
};
static_assert(sizeof(Waitable) == 0x18);
}