File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments