// // GJBaseGameLayer::increaseBatchNodeCapacity from 0x99a6e4 to 0x99a78c (168 bytes) // // 3 xrefs: // > PlayLayer::setupHasCompleted @ 0x7079fc // > LevelEditorLayer::init @ 0x7af14c // > @ 0x64420 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:58:04 +0000 // __int64 __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(GJBaseGameLayer *this) { GameManager *v2; // x0 char GameVariable; // w0 __int64 v4; // x19 bool v5; // zf __int64 result; // x0 signed int v7; // w21 unsigned int *v8; // x1 cocos2d::CCSpriteBatchNode **v9; // x19 char *v10; // x22 cocos2d::CCSpriteBatchNode *v11; // x20 v2 = (GameManager *)GameManager::sharedState(this); GameVariable = GameManager::getGameVariable(v2, "0066"); v4 = *((_QWORD *)this + 498); v5 = GameVariable == 0; result = 1000; if ( v5 ) v7 = 200; else v7 = 1000; if ( v4 ) { v8 = *(unsigned int **)(v4 + 56); result = *v8; if ( (_DWORD)result ) { v9 = *((cocos2d::CCSpriteBatchNode ***)v8 + 2); result = 8LL * (unsigned int)result - 8; v10 = (char *)v9 + result; if ( v9 <= (cocos2d::CCSpriteBatchNode **)((char *)v9 + result) ) { do { v11 = *v9; if ( !*v9 ) break; result = cocos2d::CCSpriteBatchNode::getAtlasCapacity(*v9); if ( v7 > (int)result ) result = cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v11, v7); ++v9; } while ( v10 >= (char *)v9 ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source