Skip to content

Commit

Permalink
Merge pull request #78 from outercloudstudio/main
Browse files Browse the repository at this point in the history
Fix decltype in Content Log
  • Loading branch information
FrederoxDev authored Apr 7, 2024
2 parents 3b9c40d + 64e41a6 commit 3495cd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class ContentLog {
uintptr_t** vtable;

// 1.20.72.1 - 48 89 5C 24 ? 48 89 4C 24 ? 57 48 83 EC ? 48 8B F9 48 8D 05 ? ? ? ? 48 89 01 48 89 4C 24 ? 48 83 C1 ? 48 8D 54 24 ? E8 ? ? ? ? 90 48 8D 05 ? ? ? ? 48 89 07 C6 47
ContentLog() {};
ContentLog();

template<typename... Strings>
int Log(bool doNotRepeat, LogLevel logLevel, LogArea logArea, Strings... strings) {
using function = decltype(&ContentLog::Log);
using function = int (ContentLog::*)(bool, LogLevel, LogArea, Strings...);
auto func = std::bit_cast<function>(SigScan("44 89 4C 24 ? 48 83 EC"));
return (this->*func)(doNotRepeat, logLevel, logArea, strings...);
}
Expand Down

0 comments on commit 3495cd4

Please sign in to comment.