// // cocos2d::CCString::createWithData from 0x7c8c30 to 0x7c8ca4 (116 bytes) // // 1 xrefs: // > cocos2d::CCString::createWithContentsOfFile @ 0x7c8cd4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:28 +0000 // cocos2d::CCObject *__fastcall cocos2d::CCString::createWithData( cocos2d::CCString *this, const unsigned __int8 *a2, void *a3, int a4) { cocos2d::CCObject *v6; // r4 char *v7; // r0 char *v8; // r5 size_t v9; // r0 cocos2d::CCString *v11; // [sp+0h] [bp-10h] BYREF const unsigned __int8 *v12; // [sp+4h] [bp-Ch] void *v13; // [sp+8h] [bp-8h] int v14; // [sp+Ch] [bp-4h] v11 = this; v12 = a2; v13 = a3; v14 = a4; v6 = nullptr; if ( this ) { v7 = (char *)malloc((size_t)(a2 + 1)); v8 = v7; if ( v7 ) { a2[(_DWORD)v7] = 0; if ( a2 ) memcpy(v7, this, (size_t)a2); v11 = nullptr; v12 = nullptr; v13 = nullptr; v9 = strlen(v8); std::string::__init((int *)&v11, v8, v9); v6 = cocos2d::CCString::create((int)&v11); if ( ((unsigned __int8)v11 & 1) != 0 ) operator delete(v13); free(v8); } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source