// // GJBaseGameLayer::increaseBatchNodeCapacity from 0x140312d10 to 0x140312de5 (213 bytes) // // 3 xrefs: // > LevelEditorLayer::init @ 0x1403ee89b // > PlayLayer::setupHasCompleted @ 0x140504a66 // > @ 0x14091e854 // // This function is hookable on this platform (idp: pc, 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 11:30:16 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(__int64 a1) { __int64 v2; // rcx signed int v3; // esi __int64 v4; // rbx unsigned int *v5; // rbx __int64 v6; // rax cocos2d::CCSpriteBatchNode **v7; // rbx cocos2d::CCSpriteBatchNode **i; // rbp cocos2d::CCSpriteBatchNode *v9; // rdi void *v10; // [rsp+30h] [rbp+8h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = 200; if ( GameManager::getGameVariable(v2, "0066") ) v3 = 1000; v4 = *(_QWORD *)(a1 + 4360); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); v6 = *v5; if ( (_DWORD)v6 ) { v7 = *((cocos2d::CCSpriteBatchNode ***)v5 + 2); for ( i = &v7[v6 - 1]; v7 <= i; ++v7 ) { v9 = *v7; if ( !*v7 ) break; if ( cocos2d::CCSpriteBatchNode::getAtlasCapacity(*v7) < v3 ) cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v9, v3); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source