// // cocos2d::CCEGLView::initGlew from 0x180079cf0 to 0x180079d91 (161 bytes) // // 5 xrefs: // > cocos2d::CCEGLView::initWithRect @ 0x18007a137 // > @ 0x180144a48 // > @ 0x180144a58 // > @ 0x18014cf68 // > @ 0x1801bec14 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:59 +0000 // char __fastcall cocos2d::CCEGLView::initGlew(cocos2d::CCEGLView *this) { unsigned int v2; // eax __int64 v3; // rbx const WCHAR *ErrorString; // rdi HWND v5; // rax HWND v7; // rax v2 = glewInit(); if ( v2 ) { v3 = *((_QWORD *)this + 25); ErrorString = (const WCHAR *)glewGetErrorString(v2); v5 = (HWND)sub_1800D9CB0(v3); MessageBoxW(v5, ErrorString, L"OpenGL error", 0); return 0; } else { glewIsSupported("GL_VERSION_2_0"); if ( sub_180079970() ) { return 1; } else { v7 = (HWND)sub_1800D9CB0(*((_QWORD *)this + 25)); MessageBoxW( v7, L"No OpenGL framebuffer support. Please upgrade the driver of your video card.", L"OpenGL error", 0); return 0; } } }