//
// sub_18007A4E0 from 0x18007a4e0 to 0x18007a543 (99 bytes)
//
// 4 xrefs:
// > cocos2d::CCEGLView::CCEGLView @ 0x1800782fd
// > ??> @ 0x180144e34
// > ??> @ 0x180144e44
// > ??> @ 0x1801becc8
//
// 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
//
void __fastcall sub_18007A4E0(int a1, const char *a2)
{
cocos2d::CCEGLView *v2; // rbx
cocos2d::CCString *v3; // rax
__int64 v4; // rbx
const WCHAR *CString; // rdi
HWND v6; // rax
v2 = qword_1801B2540;
if ( qword_1801B2540 )
{
v3 = cocos2d::CCString::createWithFormat("GLFWError #%d Happen, %s\n", a1, a2);
v4 = *((_QWORD *)v2 + 25);
CString = (const WCHAR *)cocos2d::CCString::getCString(v3);
v6 = (HWND)sub_1800D9CB0(v4);
MessageBoxW(v6, CString, L"OpenGL error", 0);
}
}