File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff 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
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