mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-18 01:06:51 +00:00
18 lines
359 B
C++
18 lines
359 B
C++
///
|
|
/// Created by Anonymous275 on 1/21/22
|
|
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
|
|
///
|
|
|
|
#pragma once
|
|
class Detours{
|
|
void* targetPtr;
|
|
void* detourFunc;
|
|
public:
|
|
Detours(void* src, void* dest) : targetPtr(src), detourFunc(dest){};
|
|
void Attach();
|
|
void Detach();
|
|
|
|
private:
|
|
bool Attached = false;
|
|
};
|