// // GJBaseGameLayer::increaseBatchNodeCapacity from 0x58c854 to 0x58c8a6 (82 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a066 // > LevelEditorLayer::init @ 0x47634e // // 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 11:53:03 +0000 // int __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(GJBaseGameLayer *this) { GameManager *v2; // r0 int result; // r0 int v4; // r3 signed int v5; // r7 _DWORD *v6; // r2 cocos2d::CCSpriteBatchNode **v7; // r5 cocos2d::CCSpriteBatchNode **v8; // r4 cocos2d::CCSpriteBatchNode *v9; // r6 cocos2d::CCSpriteBatchNode *v10; // t1 v2 = (GameManager *)GameManager::sharedState(this); result = GameManager::getGameVariable(v2, "0066"); v4 = *((_DWORD *)this + 617); if ( result ) v5 = 1000; else v5 = 200; if ( v4 ) { v6 = *(_DWORD **)(v4 + 52); if ( *v6 ) { v7 = (cocos2d::CCSpriteBatchNode **)v6[3]; v8 = &v7[*v6] + 0x3FFFFFFF; while ( v7 <= v8 ) { v10 = *v7++; v9 = v10; if ( !v10 ) break; result = cocos2d::CCSpriteBatchNode::getAtlasCapacity(v9); if ( result < v5 ) result = cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v9, v5); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source