generated from YimMenu/YimMenuV2
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "byte_patch_manager.hpp" | ||
|
||
namespace YimMenu | ||
{ | ||
void Byte_Patch_Manager::InitImpl() | ||
{ | ||
// put patches here | ||
// example usage: | ||
// | ||
//BytePatch::Make(Pointers.GetLocalPed,0).get() | ||
|
||
LOG(INFO) << "Byte patch manager initialized"; | ||
} | ||
|
||
void Byte_Patch_Manager::Init() | ||
{ | ||
GetInstance().InitImpl(); | ||
} | ||
|
||
Byte_Patch_Manager::~Byte_Patch_Manager() | ||
{ | ||
BytePatch::RestoreAll(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
#include "core/memory/BytePatch.hpp" | ||
|
||
namespace YimMenu | ||
{ | ||
class Byte_Patch_Manager | ||
{ | ||
public: | ||
~Byte_Patch_Manager(); | ||
|
||
static void Init(); | ||
|
||
private: | ||
static Byte_Patch_Manager& GetInstance() | ||
{ | ||
static Byte_Patch_Manager i{}; | ||
return i; | ||
} | ||
|
||
void InitImpl(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters