// // BrowseSmartTemplateLayer::updateDots from 0x53ef40 to 0x53f050 (272 bytes) // // 1 xrefs: // > BrowseSmartTemplateLayer::goToPage @ 0x53f118 // // 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 BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *a1) { cocos2d::CCDirector *v2; // r0 unsigned int v3; // r4 float v4; // s18 float v5; // s16 float width; // s19 int *v7; // r5 void (__fastcall *v8)(int *, cocos2d::CCPoint *); // r10 int v9; // r3 void (__fastcall *v10)(int *, cocos2d::CCPoint *); // r2 cocos2d::CCSize v11; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF if ( !a1->m_dotsArray ) BrowseSmartTemplateLayer::createDots(a1); v2 = cocos2d::CCDirector::sharedDirector(); v3 = 0; cocos2d::CCDirector::getWinSize(&v11, v2); v4 = (float)(int)cocos2d::CCArray::count(a1->m_pages); v5 = (float)((float)(v11.height * 0.5) - 140.0) + 15.0; while ( v3 < cocos2d::CCArray::count(a1->m_pages) ) { width = v11.width; if ( v3 < cocos2d::CCArray::count(a1->m_dotsArray) ) { v7 = (int *)cocos2d::CCArray::objectAtIndex(a1->m_dotsArray, v3); v8 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(*v7 + 92); cocos2d::CCPoint::CCPoint( &v12, (float)((float)((float)(int)v3 - (float)((float)(v4 - 1.0) * 0.5)) * 16.0) + (float)(width * 0.5), v5); v8(v7, &v12); v9 = *v7; if ( v3 == a1->m_page ) { (*(void (__fastcall **)(int *, void *))(v9 + 472))(v7, &unk_9AD330); } else { v10 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(v9 + 472); memset(&v12, 125, 3); v10(v7, &v12); } } ++v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source