// // cocos2d::CCConfiguration::gatherGPUInfo from 0x1003c26f0 to 0x1003c2bd0 (1248 bytes) // // 1 xrefs: // > cocos2d::CCDirector::setOpenGLView @ 0x100206f60 // // This function is hookable on this platform (idp: arm, 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:04:03 +0000 // void __fastcall cocos2d::CCConfiguration::gatherGPUInfo(__int64 a1) { __int64 v2; // x20 char *String; // x0 void *v4; // x21 __int64 v5; // x20 char *v6; // x0 void *v7; // x21 __int64 v8; // x20 char *v9; // x0 void *v10; // x21 __int64 v11; // x20 _DWORD *v12; // x21 __int64 v13; // x20 _DWORD *v14; // x21 __int64 v15; // x20 _DWORD *v16; // x21 char *v17; // x0 int v18; // w20 void **v19; // x1 char v20; // w8 __int64 v21; // x20 _BYTE *v22; // x21 __int64 v23; // x20 _BYTE *v24; // x21 char *v25; // x0 int v26; // w20 void **v27; // x1 char v28; // w8 __int64 v29; // x20 _BYTE *v30; // x21 char *v31; // x0 int v32; // w20 void **v33; // x1 char v34; // w8 __int64 v35; // x20 _BYTE *v36; // x21 char *v37; // x0 int v38; // w20 void **v39; // x1 char v40; // w8 __int64 v41; // x19 _BYTE *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 + 88); String = (char *)glGetString(0x1F00u); sub_100009900(v45, String); v4 = sub_1003064AC((__int128 *)v45); sub_100009900(__p, "gl.vendor"); cocos2d::CCDictionary::setObject(v2, v4, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); v5 = *(_QWORD *)(a1 + 88); v6 = (char *)glGetString(0x1F01u); sub_100009900(v45, v6); v7 = sub_1003064AC((__int128 *)v45); sub_100009900(__p, "gl.renderer"); cocos2d::CCDictionary::setObject(v5, v7, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); v8 = *(_QWORD *)(a1 + 88); v9 = (char *)glGetString(0x1F02u); sub_100009900(v45, v9); v10 = sub_1003064AC((__int128 *)v45); sub_100009900(__p, "gl.version"); cocos2d::CCDictionary::setObject(v8, v10, __p); if ( v44 < 0 ) operator delete(__p[0]); if ( v46 < 0 ) operator delete(v45[0]); *(_QWORD *)(a1 + 80) = glGetString(0x1F03u); glGetIntegerv(0xD33u, (GLint *)(a1 + 56)); v11 = *(_QWORD *)(a1 + 88); v12 = sub_100145068(*(_DWORD *)(a1 + 56)); sub_100009900(v45, "gl.max_texture_size"); cocos2d::CCDictionary::setObject(v11, v12, v45); if ( v46 < 0 ) operator delete(v45[0]); glGetIntegerv(0x8B4Du, (GLint *)(a1 + 76)); v13 = *(_QWORD *)(a1 + 88); v14 = sub_100145068(*(_DWORD *)(a1 + 76)); sub_100009900(v45, "gl.max_texture_units"); cocos2d::CCDictionary::setObject(v13, v14, v45); if ( v46 < 0 ) operator delete(v45[0]); glGetIntegerv(0x8D57u, (GLint *)(a1 + 72)); v15 = *(_QWORD *)(a1 + 88); v16 = sub_100145068(*(_DWORD *)(a1 + 72)); sub_100009900(v45, "gl.max_samples_allowed"); cocos2d::CCDictionary::setObject(v15, v16, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_IMG_texture_compression_pvrtc"); v17 = *(char **)(a1 + 80); v18 = v46; if ( v17 ) { if ( v46 >= 0 ) v19 = v45; else v19 = (void **)v45[0]; v20 = strstr(v17, (const char *)v19) != nullptr; } else { v20 = 0; } *(_BYTE *)(a1 + 64) = v20; if ( v18 < 0 ) { operator delete(v45[0]); v20 = *(_BYTE *)(a1 + 64); } v21 = *(_QWORD *)(a1 + 88); v22 = sub_1003C25B8(v20 & 1); sub_100009900(v45, "gl.supports_PVRTC"); cocos2d::CCDictionary::setObject(v21, v22, v45); if ( v46 < 0 ) operator delete(v45[0]); *(_BYTE *)(a1 + 65) = 1; v23 = *(_QWORD *)(a1 + 88); v24 = sub_1003C25B8(1); sub_100009900(v45, "gl.supports_NPOT"); cocos2d::CCDictionary::setObject(v23, v24, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_IMG_texture_format_BGRA888"); v25 = *(char **)(a1 + 80); v26 = v46; if ( v25 ) { if ( v46 >= 0 ) v27 = v45; else v27 = (void **)v45[0]; v28 = strstr(v25, (const char *)v27) != nullptr; } else { v28 = 0; } *(_BYTE *)(a1 + 66) = v28; if ( v26 < 0 ) { operator delete(v45[0]); v28 = *(_BYTE *)(a1 + 66); } v29 = *(_QWORD *)(a1 + 88); v30 = sub_1003C25B8(v28 & 1); sub_100009900(v45, "gl.supports_BGRA8888"); cocos2d::CCDictionary::setObject(v29, v30, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "GL_EXT_discard_framebuffer"); v31 = *(char **)(a1 + 80); v32 = v46; if ( v31 ) { if ( v46 >= 0 ) v33 = v45; else v33 = (void **)v45[0]; v34 = strstr(v31, (const char *)v33) != nullptr; } else { v34 = 0; } *(_BYTE *)(a1 + 67) = v34; if ( v32 < 0 ) { operator delete(v45[0]); v34 = *(_BYTE *)(a1 + 67); } v35 = *(_QWORD *)(a1 + 88); v36 = sub_1003C25B8(v34 & 1); sub_100009900(v45, "gl.supports_discard_framebuffer"); cocos2d::CCDictionary::setObject(v35, v36, v45); if ( v46 < 0 ) operator delete(v45[0]); sub_100009900(v45, "vertex_array_object"); v37 = *(char **)(a1 + 80); v38 = v46; if ( v37 ) { if ( v46 >= 0 ) v39 = v45; else v39 = (void **)v45[0]; v40 = strstr(v37, (const char *)v39) != nullptr; } else { v40 = 0; } *(_BYTE *)(a1 + 68) = v40; if ( v38 < 0 ) { operator delete(v45[0]); v40 = *(_BYTE *)(a1 + 68); } v41 = *(_QWORD *)(a1 + 88); v42 = sub_1003C25B8(v40 & 1); sub_100009900(v45, "gl.supports_vertex_array_object"); cocos2d::CCDictionary::setObject(v41, v42, v45); if ( v46 < 0 ) operator delete(v45[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source