2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-04-24 15:23:39 +03:00
metamod-r/metamod/src/meta_eiface.cpp
2017-01-06 22:11:28 +03:00

36 lines
800 B
C++

#include "precompiled.h"
void meta_new_dll_functions_t::set_from(NEW_DLL_FUNCTIONS* _pFuncs)
{
Q_memcpy(this, _pFuncs, sizeof(NEW_DLL_FUNCTIONS));
}
void meta_new_dll_functions_t::copy_to(NEW_DLL_FUNCTIONS *_pFuncs) const
{
#if 0
// TODO: Implement regamedll check
// exit
#endif
Q_memcpy(_pFuncs, this, sizeof(NEW_DLL_FUNCTIONS));
}
void meta_enginefuncs_t::set_from(enginefuncs_t* _pFuncs)
{
Q_memcpy(this, _pFuncs, sizeof(enginefuncs_t));
}
void meta_enginefuncs_t::copy_to(enginefuncs_t* _pFuncs) const
{
Q_memcpy(_pFuncs, this, sizeof(enginefuncs_t));
}
void HL_enginefuncs_t::initialise_interface(enginefuncs_t* _pFuncs)
{
set_from(_pFuncs);
// Now the pfnAlertMessage is available and we trust it to be a valid
// pointer, so flush the message buffer.
flush_ALERT_buffer();
}