Skip to content

Commit 188c985

Browse files
committed
Pragmata: Fix GUI shit
1 parent 263f604 commit 188c985

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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)