// // cocos2d::CCConfiguration::getCString from 0xd2124c to 0xd21390 (324 bytes) // // 3 xrefs: // > cocos2d::CCDirector::setDefaultValues @ 0xd48954 // > cocos2d::CCDirector::setDefaultValues @ 0xd48988 // > @ 0xc14f8 // // 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 13:07:11 +0000 // const char *__fastcall cocos2d::CCConfiguration::getCString( cocos2d::CCConfiguration *this, const char *a2, const char *a3) { __int64 v4; // x24 size_t v5; // x0 size_t v6; // x19 const char *v7; // x1 char *v8; // x3 const void *v9; // x19 cocos2d::CCString *v10; // x0 unsigned __int64 v12; // x0 __int64 v13; // x21 char *v14; // x0 __int64 v16; // [xsp+50h] [xbp+50h] BYREF size_t v17; // [xsp+58h] [xbp+58h] void *v18; // [xsp+60h] [xbp+60h] v16 = 0; v4 = *((_QWORD *)this + 11); v17 = 0; v18 = nullptr; v5 = strlen(a2); v6 = v5; v7 = a2; if ( v5 > 0x16 ) { v12 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL; v13 = v12 | 1; v14 = (char *)operator new(v12); v16 = v13; v7 = a2; v8 = v14; v18 = v14; v17 = v6; } else { LOBYTE(v16) = 2 * v5; v8 = (char *)&v16 + 1; if ( !v5 ) { BYTE1(v16) = 0; v9 = (const void *)cocos2d::CCDictionary::objectForKey(v4, &v16); if ( (v16 & 1) == 0 ) goto LABEL_4; LABEL_10: operator delete(v18); if ( !v9 ) return a3; goto LABEL_5; } } *((_BYTE *)memcpy(v8, v7, v6) + v6) = 0; v9 = (const void *)cocos2d::CCDictionary::objectForKey(v4, &v16); if ( (v16 & 1) != 0 ) goto LABEL_10; LABEL_4: if ( !v9 ) return a3; LABEL_5: v10 = (cocos2d::CCString *)_dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( !v10 ) return a3; return (const char *)cocos2d::CCString::getCString(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source