From 76b389d4046b15b79b59b1c665b51ad3d0d30f32 Mon Sep 17 00:00:00 2001 From: CallowBlack Date: Mon, 30 May 2022 23:52:47 +0300 Subject: [PATCH] fix usage offsets & fix singleton check --- cheat-library/src/framework/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat-library/src/framework/helpers.h b/cheat-library/src/framework/helpers.h index 3a2a658..b60b40c 100644 --- a/cheat-library/src/framework/helpers.h +++ b/cheat-library/src/framework/helpers.h @@ -13,7 +13,7 @@ #include "il2cpp-metadata-version.h" -#define IS_SINGLETON_LOADED(className) (*app::Singleton_1_## className ##___TypeInfo != nullptr && *app::Singleton_1_ ## className ## __get_Instance__MethodInfo != nullptr) +#define IS_SINGLETON_LOADED(className) (/**app::Singleton_1_## className ##___TypeInfo != nullptr &&*/ *app::Singleton_1_ ## className ## __get_Instance__MethodInfo != nullptr) #define GET_SINGLETON(tpname) IS_SINGLETON_LOADED(tpname) ? reinterpret_cast(app::Singleton_GetInstance(nullptr, *app::Singleton_1_ ## tpname ## __get_Instance__MethodInfo)) : nullptr #define INIT_ILCPP_CLASS(className, expr) (il2cpp_runtime_class_init(reinterpret_cast(*app::## className ##__TypeInfo)), expr)