Skip to content

Commit

Permalink
CreateInterface pattern -> Patches::Patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf49406 committed Jan 12, 2025
1 parent 63be27b commit 473909d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dota2Patcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void draw_logo() {
class Patches {
public:
struct Patterns {
static inline const std::string CreateInterface = "4C 8B ? ? ? ? ? 4C 8B ? 4C 8B ? 4D 85 ? 74 ? 49 8B ? ? 4D 8B"
static inline const std::string CDOTAGamerules = "48 8B ? ? ? ? ? 48 85 ? 74 ? 48 8B ? 45 33 ? 66 0F";
static inline const std::string CDOTACamera = "48 8D ? ? ? ? ? 48 83 C4 ? 5B C3 48 8D ? ? ? ? ? E8 ? ? ? ? 83 3D 76 B2 98 03";
static inline const std::string sv_cheats = "75 ? 48 8B 56 ? 48 8D 0D";
Expand Down
2 changes: 1 addition & 1 deletion SourceSDK/CreateInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Interfase {
class CreateInterface : public Interfase {
public:
bool get_create_interface(std::string module_name) {
const auto CreateInterface_base = Memory::pattern_scan(module_name, "4C 8B ? ? ? ? ? 4C 8B ? 4C 8B ? 4D 85 ? 74 ? 49 8B ? ? 4D 8B");
const auto CreateInterface_base = Memory::pattern_scan(module_name, Patches::Patterns::CreateInterface);
if (!CreateInterface_base) {
printf("[-] Can't find CreateInterface pattern!\n");
return false;
Expand Down

0 comments on commit 473909d

Please sign in to comment.