From d72797334f43e435084c2f20866c3f9b18e12c06 Mon Sep 17 00:00:00 2001 From: ConfiG <cgytrus@cgyt.ru> Date: Fri, 9 Jun 2023 15:30:08 +0300 Subject: [PATCH] fix CCEGLView custom ctor on windows Co-authored-by: alk <45172705+altalk23@users.noreply.github.com> --- .../include/Geode/cocos/platform/win32/CCEGLView.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/loader/include/Geode/cocos/platform/win32/CCEGLView.h b/loader/include/Geode/cocos/platform/win32/CCEGLView.h index 5c12e0a7..6ec16add 100644 --- a/loader/include/Geode/cocos/platform/win32/CCEGLView.h +++ b/loader/include/Geode/cocos/platform/win32/CCEGLView.h @@ -45,7 +45,17 @@ protected: RT_ADD( virtual ~CCEGLView(); ) public: CCEGLView(); - GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCEGLView, CCObject) + + CCEGLView(geode::ZeroConstructorType, size_t fill) : + CCEGLViewProtocol(geode::ZeroConstructor, fill), + CCObject(geode::ZeroConstructor, fill - sizeof(CCEGLViewProtocol)) {} + + CCEGLView(geode::ZeroConstructorType) : + CCEGLViewProtocol(geode::ZeroConstructor, sizeof(CCEGLView)), + CCObject(geode::ZeroConstructor, sizeof(CCEGLView) - sizeof(CCEGLViewProtocol)) {} + + CCEGLView(geode::CutoffConstructorType, size_t fill) : CCEGLView() {} + RT_REMOVE( virtual ~CCEGLView(); ) /* override functions */