From eeb4bea97a9971a83e15dadcbad8bc69c58004f9 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 13 Dec 2022 13:41:34 +0300 Subject: [PATCH] fix windows compilation --- loader/src/hooks/MessageBoxFix.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loader/src/hooks/MessageBoxFix.cpp b/loader/src/hooks/MessageBoxFix.cpp index 794f9639..1906cad1 100644 --- a/loader/src/hooks/MessageBoxFix.cpp +++ b/loader/src/hooks/MessageBoxFix.cpp @@ -40,8 +40,10 @@ static CCEGLView* CCEGLView_CCEGLView(CCEGLView* self) { } $execute { - (void)Mod::get()->addHook<&CCEGLView_CCEGLView, Thiscall>( - "CCEGLView::CCEGLView", CCEGLVIEW_CON_ADDR + (void)Mod::get()->addHook( + CCEGLVIEW_CON_ADDR, + &CCEGLView_CCEGLView, + "CCEGLView::CCEGLView", ); }