mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
44d583ee7d
Hook_Manager now only manages hooks. Renderer_Detector is used to detect the game's renderer. There will be 2 version of it. 1 for windows and 1 for Linux.
35 lines
No EOL
751 B
C++
35 lines
No EOL
751 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:
|
|
// TODO: If needed, create a second vector with only the renderers hook
|
|
// Cause actually, a call to FoundRenderer will unhook everything registered except the renderer hook
|
|
// If you do that, you should consider moving the renderer hooks to its own class and keep this one generic ?
|
|
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__
|