// // GameLevelManager::getNextFreeTemplateID from 0x10053a9e0 to 0x10053aaa3 (195 bytes) // // 1 xrefs: // > GameLevelManager::createSmartTemplate @ 0x10053aac5 // // 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 // int __fastcall GameLevelManager::getNextFreeTemplateID(GameLevelManager *a1) { cocos2d::CCDictionary *v1; // rbx cocos2d::CCNode *v2; // r12 unsigned int v3; // r13d int v4; // r14d intptr_t v5; // rdx intptr_t v6; // r15 v1 = cocos2d::CCDictionary::create(); v2 = cocos2d::CCNode::create(); if ( (unsigned int)sub_100720070(a1->m_smartTemplates) ) { v3 = 0; v4 = 0; do { v5 = *(int *)(sub_1007200C0(a1->m_smartTemplates, v3) + 192); if ( (int)v5 > v4 ) v4 = v5; cocos2d::CCDictionary::setObject(v1, v2, v5); ++v3; } while ( v3 < (unsigned int)sub_100720070(a1->m_smartTemplates) ); } else { v4 = 0; } v6 = 1; while ( cocos2d::CCDictionary::objectForKey(v1, v6) ) { if ( ++v6 == 1001 ) return v4; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source