From 93bf122adb7f6f0226037857846d3a90d3f7a411 Mon Sep 17 00:00:00 2001 From: Outer Cloud Studio Date: Sun, 7 Apr 2024 10:57:23 -0500 Subject: [PATCH 1/2] Fix decltype --- .../src/minecraft/src-deps/core/debug/log/ContentLog.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp b/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp index febb1a1f..2f75ce68 100644 --- a/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp +++ b/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp @@ -12,7 +12,7 @@ class ContentLog { template 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(SigScan("44 89 4C 24 ? 48 83 EC")); return (this->*func)(doNotRepeat, logLevel, logArea, strings...); } From 64e41a63975853912e9f2730a28a2aa4e8c03d78 Mon Sep 17 00:00:00 2001 From: Outer Cloud Studio Date: Sun, 7 Apr 2024 10:59:25 -0500 Subject: [PATCH 2/2] Remove ContentLog ctor body --- .../src/minecraft/src-deps/core/debug/log/ContentLog.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp b/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp index 2f75ce68..a1a65498 100644 --- a/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp +++ b/AmethystAPI/src/minecraft/src-deps/core/debug/log/ContentLog.hpp @@ -8,7 +8,7 @@ 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 int Log(bool doNotRepeat, LogLevel logLevel, LogArea logArea, Strings... strings) {