| 7 | namespace GfxLayer::Hooks |
| 8 | { |
| 9 | static void Initialize() |
| 10 | { |
| 11 | static bool s_Initialized = false; |
| 12 | |
| 13 | if (!s_Initialized) |
| 14 | { |
| 15 | s_Initialized = true; |
| 16 | DetourRestoreAfterWith(); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | bool HookAPI(const std::string& name, PVOID* ppRealFn, PVOID pMineFn) |
| 21 | { |