// // cocos2d::CCDirector::setDefaultValues from 0x100206720 to 0x100206870 (336 bytes) // // 1 xrefs: // > cocos2d::CCDirector::init @ 0x100206514 // // 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:00:57 +0000 // __int64 __fastcall cocos2d::CCDirector::setDefaultValues(__int64 a1) { __int64 v2; // x19 double v3; // d0 const char *CString; // x0 int v5; // w8 int v6; // w8 const char *v7; // x20 __int64 v8; // x0 __int64 Bool; // x0 v2 = cocos2d::CCConfiguration::sharedConfiguration(); v3 = 1.0 / cocos2d::CCConfiguration::getNumber(v2, "cocos2d.x.fps", 60.0); *(double *)(a1 + 200) = v3; *(double *)(a1 + 208) = v3; *(_BYTE *)(a1 + 217) = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.display_fps", 0); CString = (const char *)cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.gl.projection", "3d"); v5 = *(unsigned __int8 *)CString; if ( v5 == 50 ) { if ( CString[1] == 100 ) { v6 = *((unsigned __int8 *)CString + 2); if ( !CString[2] ) goto LABEL_10; } } else if ( v5 == 51 && CString[1] == 100 && !CString[2] ) { v6 = 1; goto LABEL_10; } if ( strcmp(CString, "custom") ) goto LABEL_11; v6 = 2; LABEL_10: *(_DWORD *)(a1 + 316) = v6; LABEL_11: v7 = (const char *)cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.texture.pixel_format_for_png", "rgba8888"); v8 = strcmp(v7, "rgba8888"); if ( !(_DWORD)v8 ) { LABEL_16: cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v8); goto LABEL_17; } if ( !strcmp(v7, "rgba4444") ) { v8 = 6; goto LABEL_16; } if ( !strcmp(v7, "rgba5551") ) { v8 = 7; goto LABEL_16; } LABEL_17: Bool = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.texture.pvrv2_has_alpha_premultiplied", 0); return sub_1001AB8E0(Bool); }
GD Web Decomp Icon

GD Web Decomp

Raw Source