Skip to content

Commit 11c7d1b

Browse files
committed
Merge branch 'pragmata'
2 parents b0ec98a + 188c985 commit 11c7d1b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/REFramework.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class REFramework {
129129
return "dd2";
130130
#elif defined(MHWILDS)
131131
return "mhwilds";
132+
#elif defined(PRAGMATA)
133+
return "pragmata";
132134
#else
133135
return "unknown";
134136
#endif

src/mods/Hooks.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,15 @@ std::optional<std::string> Hooks::hook_gui_draw() {
309309
offset = 15;
310310

311311
if (!gui_draw_call) {
312-
//return "Unable to find gui_draw_call pattern.";
313-
spdlog::error("[Hooks] Unable to find gui_draw_call pattern.");
314-
return std::nullopt; // Don't bother erroring out the entire mod just because of this
312+
// PRAGMATA
313+
gui_draw_call = utility::scan(game, "49 8B 0C C6 48 83 79 ? 00 74 ? E8 ? ? ? ?");
314+
offset = 12;
315+
316+
if (!gui_draw_call) {
317+
//return "Unable to find gui_draw_call pattern.";
318+
spdlog::error("[Hooks] Unable to find gui_draw_call pattern.");
319+
return std::nullopt; // Don't bother erroring out the entire mod just because of this
320+
}
315321
}
316322
}
317323
}

0 commit comments

Comments
 (0)