mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-26 12:10:08 -06:00
* Implemented guest-to-host function pointers (WIP) Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com> * function: support more types for function pointers * api: ported BlueBlur headers and misc. research * Move over function-pointers changes from options-menu branch. --------- Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
29 lines
561 B
C++
29 lines
561 B
C++
#pragma once
|
|
|
|
#include "CSD/Manager/csdmRCPtrAbs.h"
|
|
|
|
namespace Chao::CSD
|
|
{
|
|
class RCPtrAbs::RCObject
|
|
{
|
|
public:
|
|
struct Vftable
|
|
{
|
|
be<uint32_t> m_fpDtor;
|
|
be<uint32_t> m_fpDeallocate;
|
|
};
|
|
|
|
xpointer<Vftable> m_pVftable;
|
|
xpointer<void> m_pMemory;
|
|
be<uint32_t> m_RefCount;
|
|
xpointer<void> m_pDealloctor;
|
|
be<uint32_t> m_eDealloctor;
|
|
|
|
~RCObject();
|
|
void Deallocate(void* in_pMemory);
|
|
void Release();
|
|
};
|
|
}
|
|
|
|
#include "CSD/Manager/csdmRCObject.inl"
|