// // GJBaseGameLayer::getCapacityString from 0x48de04 to 0x48dee6 (226 bytes) // // 1 xrefs: // > PlayLayer::levelComplete @ 0x3133be // // 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 // GJBaseGameLayer *__fastcall GJBaseGameLayer::getCapacityString(GJBaseGameLayer *this, int a2) { int v2; // r6 int v4; // r2 char *v5; // r0 _DWORD *v6; // r3 cocos2d::CCSpriteBatchNode **v7; // r7 int v8; // r8 cocos2d::CCSpriteBatchNode **v9; // r11 cocos2d::CCSpriteBatchNode *v10; // r0 cocos2d::CCSpriteBatchNode *v11; // t1 int UsedAtlasCapacity; // r9 unsigned int v14[3]; // [sp+1Ch] [bp-208h] BYREF char v15; // [sp+28h] [bp-1FCh] BYREF v2 = 0; v14[0] = 0; v14[1] = 500; v14[2] = (unsigned int)&v15; v4 = *(_DWORD *)(a2 + 2576); if ( v4 ) { v6 = *(_DWORD **)(v4 + 52); if ( *v6 ) { v7 = (cocos2d::CCSpriteBatchNode **)v6[3]; v8 = 1; v9 = &v7[*v6] + 0x3FFFFFFF; while ( v7 <= v9 ) { v11 = *v7++; v10 = v11; if ( !v11 ) break; UsedAtlasCapacity = cocos2d::CCSpriteBatchNode::getUsedAtlasCapacity(v10); if ( UsedAtlasCapacity > 200 ) { if ( !v8 ) fmt::BasicWriter::operator<<(v14, ",", 0); fmt::BasicWriter::operator<<(v14, v2); fmt::BasicWriter::operator<<(v14, ",", 0); fmt::BasicWriter::operator<<(v14, UsedAtlasCapacity); v8 = 0; } ++v2; } } } v5 = (char *)fmt::BasicWriter::c_str((int *)v14); sub_776584((int)this, v5); fmt::internal::Array::free((int)v14); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source