// // GJBaseGameLayer::increaseBatchNodeCapacity from 0x100115410 to 0x1001154a2 (146 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x1000ade06 // > LevelEditorLayer::init @ 0x1000dbd48 // // 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 // void __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(GJBaseGameLayer *a1) { GameManager *v1; // rax signed int v2; // ebx cocos2d::CCArray *m_batchNodes; // rax cocos2d::ccArray *data; // rax cocos2d::CCSpriteBatchNode **arr; // r15 unsigned __int64 v6; // r12 cocos2d::CCSpriteBatchNode *v7; // r14 v1 = GameManager::sharedState(); v2 = 200; if ( GameManager::getGameVariable(v1, "0066") ) v2 = 1000; m_batchNodes = a1->m_batchNodes; if ( m_batchNodes ) { data = m_batchNodes->data; if ( data->num ) { arr = (cocos2d::CCSpriteBatchNode **)data->arr; v6 = (unsigned __int64)&arr[data->num - 1]; do { v7 = *arr; if ( !*arr ) break; if ( cocos2d::CCSpriteBatchNode::getAtlasCapacity(*arr) < v2 ) cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v7, v2); ++arr; } while ( (unsigned __int64)arr <= v6 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source