// // cocos2d::CCConfiguration::gatherGPUInfo from 0x1003249f4 to 0x100324ed4 (1248 bytes) // // 1 xrefs: // > cocos2d::CCDirector::setOpenGLView @ 0x1001759e0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCConfiguration::gatherGPUInfo(cocos2d::CCConfiguration *a1) { __int64 v2; // x20 char *String; // x0 cocos2d::CCObject *v4; // x21 __int64 v5; // x20 char *v6; // x0 cocos2d::CCObject *v7; // x21 __int64 v8; // x20 char *v9; // x0 cocos2d::CCObject *v10; // x21 __int64 v11; // x20 cocos2d::CCObject *v12; // x21 __int64 v13; // x20 cocos2d::CCObject *v14; // x21 __int64 v15; // x20 cocos2d::CCObject *v16; // x21 char *v17; // x0 int v18; // w20 void **v19; // x1 char m_uID; // w8 __int64 v21; // x20 cocos2d::CCObject *v22; // x21 __int64 v23; // x20 cocos2d::CCObject *v24; // x21 char *v25; // x0 int v26; // w20 void **v27; // x1 char v28; // w8 __int64 v29; // x20 cocos2d::CCObject *v30; // x21 char *v31; // x0 int v32; // w20 void **v33; // x1 char m_uID_high; // w8 __int64 v35; // x20 cocos2d::CCObject *v36; // x21 char *v37; // x0 int v38; // w20 void **v39; // x1 char m_nLuaID; // w8 __int64 v41; // x19 cocos2d::CCObject *v42; // x20 void *__p[2]; // [xsp+0h] [xbp-50h] BYREF char v44; // [xsp+17h] [xbp-39h] void *v45[2]; // [xsp+18h] [xbp-38h] BYREF char v46; // [xsp+2Fh] [xbp-21h] v2 = *(_QWORD *)&a1[1].m_uIndexInArray; String = (char *)glGetString(0x1F00u); sub_100009900(v45, String); v4 = sub_100268E48((__int128 *)v45); sub_100009900(__p, "gl.vendor"); cocos2d::CCDictionary::setObject_1(v2, v4, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); v5 = *(_QWORD *)&a1[1].m_uIndexInArray; v6 = (char *)glGetString(0x1F01u); sub_100009900(v45, v6); v7 = sub_100268E48((__int128 *)v45); sub_100009900(__p, "gl.renderer"); cocos2d::CCDictionary::setObject_1(v5, v7, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); v8 = *(_QWORD *)&a1[1].m_uIndexInArray; v9 = (char *)glGetString(0x1F02u); sub_100009900(v45, v9); v10 = sub_100268E48((__int128 *)v45); sub_100009900(__p, "gl.version"); cocos2d::CCDictionary::setObject_1(v8, v10, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); *(_QWORD *)&a1[1].m_uAutoReleaseCount = glGetString(0x1F03u); glGetIntegerv(0xD33u, (GLint *)&a1[1]); v11 = *(_QWORD *)&a1[1].m_uIndexInArray; v12 = sub_10011C030((int)a1[1].__vftable); sub_100009900(v45, "gl.max_texture_size"); cocos2d::CCDictionary::setObject_1(v11, v12, v45); if ( v46 < 0 ) operator delete(v45[0]); glGetIntegerv(0x8B4Du, (GLint *)&a1[1].m_uReference); v13 = *(_QWORD *)&a1[1].m_uIndexInArray; v14 = sub_10011C030(a1[1].m_uReference); sub_100009900(v45, "gl.max_texture_units"); cocos2d::CCDictionary::setObject_1(v13, v14, v45); if ( v46 < 0 ) operator delete(v45[0]); glGetIntegerv(0x8D57u, &a1[1].m_nTag); v15 = *(_QWORD *)&a1[1].m_uIndexInArray; v16 = sub_10011C030(a1[1].m_nTag); sub_100009900(v45, "gl.max_samples_allowed"); cocos2d::CCDictionary::setObject_1(v15, v16, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_IMG_texture_compression_pvrtc"); v17 = *(char **)&a1[1].m_uAutoReleaseCount; v18 = v46; if ( v17 ) { if ( v46 >= 0 ) v19 = v45; else v19 = (void **)v45[0]; m_uID = strstr(v17, (const char *)v19) != nullptr; } else { m_uID = 0; } LOBYTE(a1[1].m_uID) = m_uID; if ( v18 < 0 ) { operator delete(v45[0]); m_uID = a1[1].m_uID; } v21 = *(_QWORD *)&a1[1].m_uIndexInArray; v22 = sub_1003248BC(m_uID & 1); sub_100009900(v45, "gl.supports_PVRTC"); cocos2d::CCDictionary::setObject_1(v21, v22, v45); if ( v46 < 0 ) operator delete(v45[0]); BYTE1(a1[1].m_uID) = 1; v23 = *(_QWORD *)&a1[1].m_uIndexInArray; v24 = sub_1003248BC(1); sub_100009900(v45, "gl.supports_NPOT"); cocos2d::CCDictionary::setObject_1(v23, v24, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_IMG_texture_format_BGRA888"); v25 = *(char **)&a1[1].m_uAutoReleaseCount; v26 = v46; if ( v25 ) { if ( v46 >= 0 ) v27 = v45; else v27 = (void **)v45[0]; v28 = strstr(v25, (const char *)v27) != nullptr; } else { v28 = 0; } BYTE2(a1[1].m_uID) = v28; if ( v26 < 0 ) { operator delete(v45[0]); v28 = BYTE2(a1[1].m_uID); } v29 = *(_QWORD *)&a1[1].m_uIndexInArray; v30 = sub_1003248BC(v28 & 1); sub_100009900(v45, "gl.supports_BGRA8888"); cocos2d::CCDictionary::setObject_1(v29, v30, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_EXT_discard_framebuffer"); v31 = *(char **)&a1[1].m_uAutoReleaseCount; v32 = v46; if ( v31 ) { if ( v46 >= 0 ) v33 = v45; else v33 = (void **)v45[0]; m_uID_high = strstr(v31, (const char *)v33) != nullptr; } else { m_uID_high = 0; } HIBYTE(a1[1].m_uID) = m_uID_high; if ( v32 < 0 ) { operator delete(v45[0]); m_uID_high = HIBYTE(a1[1].m_uID); } v35 = *(_QWORD *)&a1[1].m_uIndexInArray; v36 = sub_1003248BC(m_uID_high & 1); sub_100009900(v45, "gl.supports_discard_framebuffer"); cocos2d::CCDictionary::setObject_1(v35, v36, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "vertex_array_object"); v37 = *(char **)&a1[1].m_uAutoReleaseCount; v38 = v46; if ( v37 ) { if ( v46 >= 0 ) v39 = v45; else v39 = (void **)v45[0]; m_nLuaID = strstr(v37, (const char *)v39) != nullptr; } else { m_nLuaID = 0; } LOBYTE(a1[1].m_nLuaID) = m_nLuaID; if ( v38 < 0 ) { operator delete(v45[0]); m_nLuaID = a1[1].m_nLuaID; } v41 = *(_QWORD *)&a1[1].m_uIndexInArray; v42 = sub_1003248BC(m_nLuaID & 1); sub_100009900(v45, "gl.supports_vertex_array_object"); cocos2d::CCDictionary::setObject_1(v41, v42, v45); if ( v46 < 0 ) operator delete(v45[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source