mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
29 lines
444 B
C++
29 lines
444 B
C++
#ifndef __INCLUDED_HOOK_BASE_H__
|
|
#define __INCLUDED_HOOK_BASE_H__
|
|
|
|
#include "Base_Hook.h"
|
|
|
|
#ifndef NO_OVERLAY
|
|
|
|
#include <set>
|
|
|
|
class Hook_Manager
|
|
{
|
|
friend class Base_Hook;
|
|
|
|
protected:
|
|
std::set<Base_Hook*> _hooks;
|
|
|
|
Hook_Manager();
|
|
virtual ~Hook_Manager();
|
|
|
|
public:
|
|
static Hook_Manager& Inst();
|
|
|
|
void AddHook(Base_Hook* hook);
|
|
void RemoveHook(Base_Hook* hook);
|
|
};
|
|
|
|
#endif//NO_OVERLAY
|
|
|
|
#endif//__INCLUDED_HOOK_BASE_H__
|