GearLoader 1.1.0
Mod loader for GGXXACPR
Loading...
Searching...
No Matches
BaseMod::ApiWrapper< T > Class Template Reference

Public Member Functions

 ApiWrapper (const T *ref)
bool VersionError ()
bool IsValid ()
const T * GetCApi ()

Protected Attributes

const T * _ref

Constructor & Destructor Documentation

◆ ApiWrapper() [1/2]

template<typename T>
BaseMod::ApiWrapper< T >::ApiWrapper ( )
inline
56: _ref(nullptr) {}

◆ ApiWrapper() [2/2]

template<typename T>
BaseMod::ApiWrapper< T >::ApiWrapper ( const T * ref)
inline
57: _ref(ref) {}
Definition baseMod.hpp:54

Member Function Documentation

◆ GetCApi()

template<typename T>
const T * BaseMod::ApiWrapper< T >::GetCApi ( )
inline
63{ return _ref; }

◆ IsValid()

template<typename T>
bool BaseMod::ApiWrapper< T >::IsValid ( )
inline
62{ return _ref != nullptr; }

◆ VersionError()

template<typename T>
bool BaseMod::ApiWrapper< T >::VersionError ( )
inline
58 {
59 return (BASEMOD_API_VERSION_NUM & 0xFF0000) !=
60 (reinterpret_cast<CApiBase*>(_ref)->version & 0xFF0000);
61 }

The documentation for this class was generated from the following file: