2019-07-26 05:21:03 +08:00
|
|
|
#ifndef __INCLUDED_HOOK_BASE_H__
|
|
|
|
#define __INCLUDED_HOOK_BASE_H__
|
|
|
|
|
2019-08-14 20:55:31 +08:00
|
|
|
#include "Base_Hook.h"
|
|
|
|
|
2020-01-20 01:55:14 +08:00
|
|
|
#ifdef EMU_OVERLAY
|
2019-08-14 20:55:31 +08:00
|
|
|
|
2019-08-26 22:38:01 +08:00
|
|
|
#include <set>
|
2019-08-16 16:36:44 +08:00
|
|
|
|
2019-07-26 05:21:03 +08:00
|
|
|
class Hook_Manager
|
|
|
|
{
|
|
|
|
friend class Base_Hook;
|
|
|
|
|
|
|
|
protected:
|
2019-08-26 22:38:01 +08:00
|
|
|
std::set<Base_Hook*> _hooks;
|
2019-07-26 05:21:03 +08:00
|
|
|
|
|
|
|
Hook_Manager();
|
|
|
|
virtual ~Hook_Manager();
|
|
|
|
|
|
|
|
public:
|
|
|
|
static Hook_Manager& Inst();
|
|
|
|
|
2019-08-27 21:38:07 +08:00
|
|
|
void AddHook(Base_Hook* hook);
|
|
|
|
void RemoveHook(Base_Hook* hook);
|
2019-07-26 05:21:03 +08:00
|
|
|
};
|
|
|
|
|
2020-01-20 01:55:14 +08:00
|
|
|
#endif//EMU_OVERLAY
|
2019-07-26 05:21:03 +08:00
|
|
|
|
|
|
|
#endif//__INCLUDED_HOOK_BASE_H__
|