mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-30 15:50:05 -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>
37 lines
841 B
C++
37 lines
841 B
C++
namespace Hedgehog::Database
|
|
{
|
|
inline CDatabaseData::~CDatabaseData()
|
|
{
|
|
GuestToHostFunction<void>(m_pVftable->m_fpDtor, this);
|
|
}
|
|
|
|
inline bool CDatabaseData::CheckMadeAll()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
inline bool CDatabaseData::IsMadeOne() const
|
|
{
|
|
return (m_Flags & eDatabaseDataFlags_IsMadeOne) != 0;
|
|
}
|
|
|
|
inline void CDatabaseData::SetMadeOne()
|
|
{
|
|
m_Flags |= eDatabaseDataFlags_IsMadeOne;
|
|
}
|
|
|
|
inline bool CDatabaseData::IsMadeAllInternal()
|
|
{
|
|
if ((m_Flags & eDatabaseDataFlags_IsMadeOne) == 0 || !CheckMadeAll())
|
|
return false;
|
|
|
|
m_Flags |= eDatabaseDataFlags_IsMadeAll;
|
|
return true;
|
|
}
|
|
|
|
inline bool CDatabaseData::IsMadeAll()
|
|
{
|
|
return (m_Flags & eDatabaseDataFlags_IsMadeAll) != 0 || IsMadeAllInternal();
|
|
}
|
|
}
|