// // cocos2d::CCSizeFromString from 0x1001a68dc to 0x1001a6990 (180 bytes) // // 3 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc434 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc4a4 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc67c // // 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 // cocos2d::CCSize __fastcall cocos2d::CCSizeFromString(const char *a1) { _QWORD *v1; // x8 _QWORD *v3; // x19 __int64 v4; // x20 const char *v5; // x0 float v6; // s8 const char *v7; // x0 float v8; // s1 _QWORD v11[3]; // [xsp+0h] [xbp-40h] BYREF void **v12; // [xsp+18h] [xbp-28h] BYREF cocos2d::CCSize result; // 0:s0.4,4:s1.4 v3 = v1; sub_100022AFC(v1, &dbl_10086BFC8); memset(v11, 0, sizeof(v11)); if ( (sub_1001A64AC((char *)a1, (__int64)v11) & 1) != 0 ) { v4 = v11[0]; v5 = (const char *)v11[0]; if ( *(char *)(v11[0] + 23LL) < 0 ) v5 = *(const char **)v11[0]; v6 = atof(v5); v7 = (const char *)(v4 + 24); if ( *(char *)(v4 + 47) < 0 ) v7 = *(const char **)v7; v8 = atof(v7); sub_100022988((float *)&v12, v6, v8); sub_100022B14(v3, (double *)&v12); } v12 = (void **)v11; sub_1000177FC(&v12); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source